1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Free strings in all cases in cmd_rooms

Regards https://github.com/profanity-im/profanity/issues/1019
This commit is contained in:
Michael Vetter 2019-10-06 18:51:04 +02:00
parent 98676613fd
commit 3ce27b47ad

View File

@ -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;
}