diff options
author | James Booth <boothj5@gmail.com> | 2014-04-14 23:41:45 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-04-14 23:41:45 +0100 |
commit | 79088d01500ba5f6224a8d49a45ed1e1bc96ef07 (patch) | |
tree | cc32af365112c74b4593cec7704a43f52890fdb6 /src | |
parent | 3e69d6b71ed57964df92f172d8f7a041e798a2e3 (diff) | |
download | profani-tty-79088d01500ba5f6224a8d49a45ed1e1bc96ef07.tar.gz |
Clean up keys after using parse_options
Diffstat (limited to 'src')
-rw-r--r-- | src/command/commands.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/command/commands.c b/src/command/commands.c index 51334934..63ecb48e 100644 --- a/src/command/commands.c +++ b/src/command/commands.c @@ -93,6 +93,7 @@ cmd_connect(gchar **args, struct cmd_help_t help) } options_destroy(options); + g_list_free(opt_keys); char *user = args[0]; char *lower = g_utf8_strdown(user, -1); @@ -1587,6 +1588,7 @@ cmd_join(gchar **args, struct cmd_help_t help) passwd = g_hash_table_lookup(options, "password"); options_destroy(options); + g_list_free(opt_keys); // In the case that a nick wasn't provided by the optional args... if (nick == NULL) { |