aboutsummaryrefslogtreecommitdiff
path: root/src/methods/execute_command.zig
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2024-06-09 20:03:14 +0200
committerJan200101 <sentrycraft123@gmail.com>2024-06-09 20:03:14 +0200
commit3ccc1867c86aa0e21177420bba879495654b1b09 (patch)
tree4c9ac2f2a4596d53f2f4de55f07df89da7e5280c /src/methods/execute_command.zig
parentf1118e997d1642ca161868ee1bb348cc3ea23d7c (diff)
downloadSouthRPC-zig.tar.gz
SouthRPC-zig.zip
work towards hookszig
Diffstat (limited to 'src/methods/execute_command.zig')
-rw-r--r--src/methods/execute_command.zig1
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();