about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-05-17 22:49:24 +0100
committerJames Booth <boothj5@gmail.com>2014-05-17 22:49:24 +0100
commitcb614ec36f067b806b9896a2d37459e001982643 (patch)
tree590a13d226972bb83f88db995a43ecbcceb53dd4
parente762d80b68cf9377ba26d8781b6c87eaf11f84e8 (diff)
downloadprofani-tty-cb614ec36f067b806b9896a2d37459e001982643.tar.gz
Free autocomplete hash table
-rw-r--r--src/command/command.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/command/command.c b/src/command/command.c
index 211f7b4f..22c9670a 100644
--- a/src/command/command.c
+++ b/src/command/command.c
@@ -1574,9 +1574,11 @@ _cmd_complete_parameters(char *input, int *size)
         if (result != NULL) {
             ui_replace_input(input, result, size);
             g_free(result);
+            g_hash_table_destroy(ac_funcs);
             return;
         }
     }
+    g_hash_table_destroy(ac_funcs);
 
     return;
 }