mirror of
https://github.com/profanity-im/profanity.git
synced 2025-02-02 15:08:15 -05:00
Free command memory
This commit is contained in:
parent
161157a1c8
commit
07fdb4afef
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user