From 16bb74c47be24624c04f27b730dd4105efc0596f Mon Sep 17 00:00:00 2001 From: utox39 Date: Sat, 4 Oct 2025 17:55:50 +0200 Subject: [PATCH 1/2] fix(config): fix a memory leak when the InvalidModule error occurs --- src/config.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/config.zig b/src/config.zig index 2524335..1c40bf2 100644 --- a/src/config.zig +++ b/src/config.zig @@ -51,6 +51,7 @@ pub fn getModulesTypes(allocator: std.mem.Allocator, config: ?std.json.Parsed(Co if (module_enum) |m| { try modules_list.append(m); } else { + modules_list.deinit(); return error.InvalidModule; } } From dd2f50c79c9175822b77d51a5f7ed4b8f3826af3 Mon Sep 17 00:00:00 2001 From: utox39 Date: Sat, 4 Oct 2025 17:57:29 +0200 Subject: [PATCH 2/2] build: bump version to 0.22.1 --- build.zig.zon | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.zig.zon b/build.zig.zon index fa15cab..00436d2 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -10,7 +10,7 @@ // This is a [Semantic Version](https://semver.org/). // In a future version of Zig it will be used for package deduplication. - .version = "0.22.0", + .version = "0.22.1", // Together with name, this represents a globally unique package // identifier. This field is generated by the Zig toolchain when the