aboutsummaryrefslogtreecommitdiffstats
path: root/src/command
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2016-02-14 01:59:53 +0000
committerJames Booth <boothj5@gmail.com>2016-02-14 01:59:53 +0000
commitf887a35c0cd550a3c635630da2bd83bb7400b957 (patch)
tree686077122ff4e599ae1bc99ad715ae11d4a57ab0 /src/command
parentd7b331874a1a98ad97ca9f331d4eab5d81b29b13 (diff)
downloadprofani-tty-f887a35c0cd550a3c635630da2bd83bb7400b957.tar.gz
Fixed memory deallocations
Diffstat (limited to 'src/command')
-rw-r--r--src/command/commands.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/command/commands.c b/src/command/commands.c
index 6a9972b6..ee2e9c83 100644
--- a/src/command/commands.c
+++ b/src/command/commands.c
@@ -154,7 +154,9 @@ cmd_execute_alias(ProfWin *window, const char *const inp, gboolean *ran)
free(alias);
if (value) {
*ran = TRUE;
- return cmd_process_input(window, value);
+ gboolean result = cmd_process_input(window, value);
+ prefs_free_string(value);
+ return result;
}
*ran = FALSE;