Memory leak fixes.
[silc.git] / lib / silcclient / command_reply.c
index 8317c61717481920e8c03e7c857dcddf1f45812d..a4b9959202498134165c77fd56dcea423bd5e325 100644 (file)
@@ -514,7 +514,7 @@ SILC_FSM_STATE(silc_client_command_reply_whois)
 
   silc_client_unref_client(client, conn, client_entry);
   if (has_channels) {
-    silc_dlist_uninit(channel_list);
+    silc_channel_payload_list_free(channel_list);
     silc_free(umodes);
   }