about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDmitry Podgorny <pasis.ua@gmail.com>2013-08-26 12:31:41 +0300
committerDmitry Podgorny <pasis.ua@gmail.com>2013-08-26 12:31:41 +0300
commit7a9fcd53d29b26370ff3d4103e25a420f3399682 (patch)
treedbc7d0c561722bc0add44cd1f780adb987fbea6e
parente21bf8a18d682ae95699b6ddedf17aa870303a3c (diff)
downloadprofani-tty-7a9fcd53d29b26370ff3d4103e25a420f3399682.tar.gz
fixed crash because of incorrect string releasing
-rw-r--r--src/xmpp/iq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xmpp/iq.c b/src/xmpp/iq.c
index 5de84056..8eb4d99e 100644
--- a/src/xmpp/iq.c
+++ b/src/xmpp/iq.c
@@ -247,7 +247,7 @@ _iq_handle_version_get(xmpp_conn_t * const conn, xmpp_stanza_t * const stanza,
 
         xmpp_send(conn, response);
 
-        g_free(version_str);
+        g_string_free(version_str, TRUE);
         xmpp_stanza_release(name_txt);
         xmpp_stanza_release(version_txt);
         xmpp_stanza_release(name);