diff options
Diffstat (limited to 'src/methods/execute_command.zig')
-rw-r--r-- | src/methods/execute_command.zig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/methods/execute_command.zig b/src/methods/execute_command.zig index c253738..add17e9 100644 --- a/src/methods/execute_command.zig +++ b/src/methods/execute_command.zig @@ -41,6 +41,7 @@ fn execute_command(allocator: Allocator, params: ?std.json.Value) !?std.json.Val break :blk try allocator.dupeZ(u8, command_item.string); }; + defer allocator.free(command); if (engine.Cbuf) |Cbuf| { const cur_player = Cbuf.GetCurrentPlayer(); |