about summary refs log tree commit diff stats
path: root/src/event
diff options
context:
space:
mode:
authorSteffen Jaeckel <jaeckel-floss@eyet-services.de>2023-05-10 11:08:44 +0200
committerSteffen Jaeckel <jaeckel-floss@eyet-services.de>2023-05-10 18:08:09 +0200
commit08d68d329bac4417a8c7a9c44d7398e460fc0751 (patch)
treee19adb7291cd04b6a2ca1533bba0731530cdbc44 /src/event
parent7d9c3c1b32fcf0804a384b80a3e205b646a69b71 (diff)
downloadprofani-tty-08d68d329bac4417a8c7a9c44d7398e460fc0751.tar.gz
more `auto_char`
Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
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();