about summary refs log tree commit diff stats
path: root/src/event
diff options
context:
space:
mode:
Diffstat (limited to 'src/event')
-rw-r--r--src/event/client_events.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/event/client_events.c b/src/event/client_events.c
index 67ffec20..4dcda4f3 100644
--- a/src/event/client_events.c
+++ b/src/event/client_events.c
@@ -85,9 +85,8 @@ cl_ev_connect_account(ProfAccount* account)
 void
 cl_ev_disconnect(void)
 {
-    char* mybarejid = connection_get_barejid();
+    auto_char char* mybarejid = connection_get_barejid();
     cons_show("%s logged out successfully.", mybarejid);
-    free(mybarejid);
 
     ui_close_all_wins();
     ev_disconnect_cleanup();