From 0bc8ec7da372232e609b9fb20a8130d34912937b Mon Sep 17 00:00:00 2001 From: Dany LE Date: Fri, 26 Nov 2021 19:03:40 +0100 Subject: [PATCH] free client list at end --- syslog/syslog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syslog/syslog.c b/syslog/syslog.c index 7059ec0..65d6dfa 100644 --- a/syslog/syslog.c +++ b/syslog/syslog.c @@ -218,7 +218,7 @@ int main(int argc, char **argv) // unsubscribe all client fargv[0] = (void *)&fd; bst_for_each(clients, unsubscribe, fargv, 1); - + bst_free(clients); // close the channel M_LOG(MODULE_NAME, "Close the channel %s (%d)", argv[2], fd); msg.header.type = CHANNEL_CLOSE;