mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
don't release room and nick when parsing failed
This commit is contained in:
parent
492a333294
commit
59e4db0e96
@ -569,9 +569,6 @@ _groupchat_message_handler(xmpp_stanza_t * const stanza)
|
|||||||
// room jid not of form room/nick
|
// room jid not of form room/nick
|
||||||
if (!parse_room_jid(room_jid, &room, &nick)) {
|
if (!parse_room_jid(room_jid, &room, &nick)) {
|
||||||
log_error("Could not parse room jid: %s", room_jid);
|
log_error("Could not parse room jid: %s", room_jid);
|
||||||
g_free(room);
|
|
||||||
g_free(nick);
|
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user