From 7a9fcd53d29b26370ff3d4103e25a420f3399682 Mon Sep 17 00:00:00 2001 From: Dmitry Podgorny Date: Mon, 26 Aug 2013 12:31:41 +0300 Subject: fixed crash because of incorrect string releasing --- src/xmpp/iq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit 1.4.1-2-gfad0