free client list at end

This commit is contained in:
Dany LE 2021-11-26 19:03:40 +01:00
parent 6d5a203028
commit 0bc8ec7da3

View File

@ -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;