* free the other lists in here too on shutdown.
authorWilfried Göesgens <willi@citadel.org>
Sat, 20 Jan 2007 20:32:43 +0000 (20:32 +0000)
committerWilfried Göesgens <willi@citadel.org>
Sat, 20 Jan 2007 20:32:43 +0000 (20:32 +0000)
citadel/serv_network.c

index ca8bfb668365d694fff996707f36a1642e3e234f..94c3896bb43ac1233b8c169501e52b8c087a5b5e 100644 (file)
@@ -1185,6 +1185,7 @@ void network_queue_room(struct ctdlroom *qrbuf, void *data) {
 void destroy_network_queue_room(void)
 {
        struct RoomProcList *cur, *p;
+       struct NetMap *nmcur, *nmp;
 
        cur = rplist;
        begin_critical_section(S_RPLIST);
@@ -1196,6 +1197,18 @@ void destroy_network_queue_room(void)
        }
        rplist = NULL;
        end_critical_section(S_RPLIST);
+
+       nmcur = the_netmap;
+       while (nmcur != NULL)
+       {
+               nmp = nmcur->next;
+               free (nmcur);
+               nmcur = nmp;            
+       }
+       the_netmap = NULL;
+       if (working_ignetcfg != NULL)
+               free (working_ignetcfg);
+       working_ignetcfg = NULL;
 }