NETCFG: first free the configs, then the infrastructure needed to free them.
authorWilfried Goesgens <dothebart@citadel.org>
Thu, 16 May 2013 18:22:42 +0000 (20:22 +0200)
committerWilfried Goesgens <dothebart@citadel.org>
Thu, 16 May 2013 18:22:42 +0000 (20:22 +0200)
citadel/netconfig.c

index 8afd22a..f09c852 100644 (file)
@@ -1174,11 +1174,11 @@ void destroy_network_cfgs(void)
        HashList *pCfgTypeHash = CfgTypeHash;
        HashList *pRoomConfigs = RoomConfigs;
 
        HashList *pCfgTypeHash = CfgTypeHash;
        HashList *pRoomConfigs = RoomConfigs;
 
-       CfgTypeHash = NULL;
        RoomConfigs = NULL;
        RoomConfigs = NULL;
-       
-       DeleteHash(&pCfgTypeHash);
        DeleteHash(&pRoomConfigs);
        DeleteHash(&pRoomConfigs);
+
+       CfgTypeHash = NULL;
+       DeleteHash(&pCfgTypeHash);
 }
 
 /*
 }
 
 /*