about summary refs log tree commit diff stats
path: root/src/xmpp
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-06-15 21:19:53 +0100
committerJames Booth <boothj5@gmail.com>2014-06-15 21:19:53 +0100
commitc9274a38b29fe07d635b07d7c8bb8652fc2cf6f3 (patch)
tree6e2879c8e20b9133d7acaa885179b43542672b9b /src/xmpp
parentbc03e0dc02585733b3296b8c089030d4de84a1ee (diff)
downloadprofani-tty-c9274a38b29fe07d635b07d7c8bb8652fc2cf6f3.tar.gz
Free jabber_conn.log
Diffstat (limited to 'src/xmpp')
-rw-r--r--src/xmpp/connection.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xmpp/connection.c b/src/xmpp/connection.c
index a7cdbc1a..660fe913 100644
--- a/src/xmpp/connection.c
+++ b/src/xmpp/connection.c
@@ -209,6 +209,7 @@ _jabber_shutdown(void)
     _connection_free_saved_details();
     _connection_free_session_data();
     xmpp_shutdown();
+    free(jabber_conn.log);
 }
 
 static void
@@ -358,6 +359,9 @@ _jabber_connect(const char * const fulljid, const char * const passwd,
     jid_destroy(jid);
 
     log_info("Connecting as %s", fulljid);
+    if (jabber_conn.log != NULL) {
+        free(jabber_conn.log);
+    }
     jabber_conn.log = _xmpp_get_file_logger();
 
     if (jabber_conn.conn != NULL) {