Fixed various jid and account mem leaks

This commit is contained in:
James Booth
2015-06-24 20:53:04 +01:00
parent 626ab51ed4
commit 240f6a3f79
6 changed files with 10 additions and 1 deletions

View File

@@ -670,6 +670,7 @@ _muc_user_handler(xmpp_conn_t * const conn, xmpp_stanza_t * const stanza, void *
// invalid from attribute
Jid *from_jid = jid_create(from);
if (from_jid == NULL || from_jid->resourcepart == NULL) {
jid_destroy(from_jid);
return 1;
}