about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2012-04-27 01:16:31 +0100
committerJames Booth <boothj5@gmail.com>2012-04-27 01:16:31 +0100
commit07fdb4afef3af00fa47aad74140b3622efa32460 (patch)
tree61cec9a1231757432c866f8c32f12eff6fdd0c25
parent161157a1c868746d052924bd590c5cfd9f7a75f7 (diff)
downloadprofani-tty-07fdb4afef3af00fa47aad74140b3622efa32460.tar.gz
Free command memory
-rw-r--r--command.c1
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);
     }