Merge pull request #168 from blurrycat/fix/cli_memleak

Fix memory leak in CLI
This commit is contained in:
bobf 2025-03-07 20:53:52 +00:00 committed by GitHub
commit 29612e463f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -222,7 +222,9 @@ pub fn runCommandInDir(allocator: std.mem.Allocator, argv: []const []const u8, d
}
return error.JetzigCommandError;
} else {
printSuccess(try std.mem.join(allocator, " ", argv));
const message = try std.mem.join(allocator, " ", argv);
defer allocator.free(message);
printSuccess(message);
}
}