mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-26 06:56:22 +00:00
Free jabber_conn.log
This commit is contained in:
@@ -209,6 +209,7 @@ _jabber_shutdown(void)
|
|||||||
_connection_free_saved_details();
|
_connection_free_saved_details();
|
||||||
_connection_free_session_data();
|
_connection_free_session_data();
|
||||||
xmpp_shutdown();
|
xmpp_shutdown();
|
||||||
|
free(jabber_conn.log);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@@ -358,6 +359,9 @@ _jabber_connect(const char * const fulljid, const char * const passwd,
|
|||||||
jid_destroy(jid);
|
jid_destroy(jid);
|
||||||
|
|
||||||
log_info("Connecting as %s", fulljid);
|
log_info("Connecting as %s", fulljid);
|
||||||
|
if (jabber_conn.log != NULL) {
|
||||||
|
free(jabber_conn.log);
|
||||||
|
}
|
||||||
jabber_conn.log = _xmpp_get_file_logger();
|
jabber_conn.log = _xmpp_get_file_logger();
|
||||||
|
|
||||||
if (jabber_conn.conn != NULL) {
|
if (jabber_conn.conn != NULL) {
|
||||||
|
|||||||
Reference in New Issue
Block a user