Free command memory
This commit is contained in:
@@ -65,6 +65,7 @@ gboolean process_input(char *inp)
|
|||||||
} else if (inp[0] == '/') {
|
} else if (inp[0] == '/') {
|
||||||
struct command_t cmd = _parse_command(inp);
|
struct command_t cmd = _parse_command(inp);
|
||||||
result = _handle_command(cmd.command, inp);
|
result = _handle_command(cmd.command, inp);
|
||||||
|
free(cmd.command);
|
||||||
} else {
|
} else {
|
||||||
result = _cmd_default(inp);
|
result = _cmd_default(inp);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user