diff options
author | Michael Vetter <jubalh@iodoru.org> | 2019-10-06 18:51:04 +0200 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2019-10-06 18:51:04 +0200 |
commit | 3ce27b47ad815107600c17539ae658c4c073c6de (patch) | |
tree | f31b58c8f60a914ef4bb182569b92bb2fa93ab64 /src | |
parent | 98676613fd5c6fcc4f49079fe2d73b96f465b09f (diff) | |
download | profani-tty-3ce27b47ad815107600c17539ae658c4c073c6de.tar.gz |
Free strings in all cases in cmd_rooms
Regards https://github.com/profanity-im/profanity/issues/1019
Diffstat (limited to 'src')
-rw-r--r-- | src/command/cmd_funcs.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c index 1ee6f202..9a3d2c93 100644 --- a/src/command/cmd_funcs.c +++ b/src/command/cmd_funcs.c @@ -4593,6 +4593,8 @@ cmd_rooms(ProfWin *window, const char *const command, gchar **args) } else { cons_bad_cmd_usage(command); cons_show(""); + g_free(service); + g_free(filter); return TRUE; } } @@ -4620,6 +4622,7 @@ cmd_rooms(ProfWin *window, const char *const command, gchar **args) iq_room_list_request(service, filter); g_free(service); + g_free(filter); return TRUE; } |