mirror of
https://github.com/jetzig-framework/jetzig.git
synced 2025-05-14 14:06:08 +00:00
Merge pull request #168 from blurrycat/fix/cli_memleak
Fix memory leak in CLI
This commit is contained in:
commit
29612e463f
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user