From c9274a38b29fe07d635b07d7c8bb8652fc2cf6f3 Mon Sep 17 00:00:00 2001 From: James Booth Date: Sun, 15 Jun 2014 21:19:53 +0100 Subject: Free jabber_conn.log --- src/xmpp/connection.c | 4 ++++ 1 file changed, 4 insertions(+) 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) { -- cgit 1.4.1-2-gfad0