diff options
author | James Booth <boothj5@gmail.com> | 2012-04-27 01:16:31 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2012-04-27 01:16:31 +0100 |
commit | 07fdb4afef3af00fa47aad74140b3622efa32460 (patch) | |
tree | 61cec9a1231757432c866f8c32f12eff6fdd0c25 /command.c | |
parent | 161157a1c868746d052924bd590c5cfd9f7a75f7 (diff) | |
download | profani-tty-07fdb4afef3af00fa47aad74140b3622efa32460.tar.gz |
Free command memory
Diffstat (limited to 'command.c')
-rw-r--r-- | command.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/command.c b/command.c index 5ecb015e..64d2d7e5 100644 --- a/command.c +++ b/command.c @@ -65,6 +65,7 @@ gboolean process_input(char *inp) } else if (inp[0] == '/') { struct command_t cmd = _parse_command(inp); result = _handle_command(cmd.command, inp); + free(cmd.command); } else { result = _cmd_default(inp); } |