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

@@ -366,6 +366,7 @@ _jabber_connect(const char * const fulljid, const char * const passwd,
} else if (jid->fulljid == NULL) {
log_error("Full JID required to connect, received: %s", fulljid);
jabber_conn.conn_status = JABBER_DISCONNECTED;
jid_destroy(jid);
return jabber_conn.conn_status;
}