fix leaks and exception in Lambda logs
All checks were successful
Alexa skill build / build (push) Successful in 2m5s

This commit is contained in:
Emil Lerch 2026-02-04 15:56:13 -08:00
parent 580f6657b9
commit 37dcb8fd6c
Signed by: lobo
GPG key ID: A7B62D657EF764F8
2 changed files with 4 additions and 3 deletions

View file

@ -9,8 +9,8 @@
.hash = "controlr-0.1.0-upFm0LtgAAAo85RiRDa0WmSrORIhAa5bCF8UdT9rDyUk",
},
.lambda_zig = .{
.url = "git+https://git.lerch.org/lobo/lambda-zig#5c36a2c979b0bd4f0cbda3d64fb997f341085bc9",
.hash = "lambda_zig-0.1.0-_G43_2ReAQDdEirp5hBDtuKAtAPzWjleCp9nw524BCdZ",
.url = "git+https://git.lerch.org/lobo/lambda-zig#2bdf23f375c1453cb471e8603b3cdbb6616aba28",
.hash = "lambda_zig-0.1.0-_G43_x1fAQD4mNzDFE-Iz9lSrwQctI6V6510luXlJAkc",
},
.aws = .{
.url = "git+https://git.lerch.org/lobo/aws-sdk-for-zig#5c7aed071f6251d53a1627080a21d604ff58f0a5",

View file

@ -125,7 +125,7 @@ pub fn main() !u8 {
// Add permission with skill ID as event source token
const services = aws.Services(.{.lambda}){};
_ = aws.Request(services.lambda.add_permission).call(.{
const result = aws.Request(services.lambda.add_permission).call(.{
.function_name = function_name,
.statement_id = statement_id,
.action = "lambda:InvokeFunction",
@ -145,6 +145,7 @@ pub fn main() !u8 {
try stderr.flush();
return 1;
};
result.deinit();
try stdout.print("Added Alexa permission for skill: {s}\n", .{skill_id});
try stdout.flush();