diff options
author | James Booth <boothj5@gmail.com> | 2013-01-23 22:46:28 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2013-01-23 22:46:28 +0000 |
commit | e325c391c5dbaa07c22a62e11ce9759b8e49f24b (patch) | |
tree | fab9f069c2aa3956ef76d546657d1caaf59b052f /src | |
parent | c9869f93c39b328ce90fcd320b202ce9f067bcdf (diff) | |
download | profani-tty-e325c391c5dbaa07c22a62e11ce9759b8e49f24b.tar.gz |
Free memory in disco response handler
Diffstat (limited to 'src')
-rw-r--r-- | src/jabber.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/jabber.c b/src/jabber.c index db916dbc..f68327fb 100644 --- a/src/jabber.c +++ b/src/jabber.c @@ -1062,8 +1062,14 @@ _disco_response_handler(xmpp_conn_t * const conn, xmpp_stanza_t * const stanza, if (g_strcmp0(given_sha1, generated_sha1) != 0) { log_info("Invalid SHA1 recieved for caps."); + FREE_SET_NULL(generated_sha1); + g_strfreev(split); + return 1; } + FREE_SET_NULL(generated_sha1); + g_strfreev(split); + // non supported hash, or legacy caps } else { caps_key = id + 6; |