From: Wilfried Goesgens Date: Thu, 16 May 2013 18:22:42 +0000 (+0200) Subject: NETCFG: first free the configs, then the infrastructure needed to free them. X-Git-Tag: v8.20~47 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=0d309c3f9280c215677530e59f68c8c149fd65ce NETCFG: first free the configs, then the infrastructure needed to free them. --- diff --git a/citadel/netconfig.c b/citadel/netconfig.c index 8afd22a4b..f09c852fd 100644 --- a/citadel/netconfig.c +++ b/citadel/netconfig.c @@ -1174,11 +1174,11 @@ void destroy_network_cfgs(void) HashList *pCfgTypeHash = CfgTypeHash; HashList *pRoomConfigs = RoomConfigs; - CfgTypeHash = NULL; RoomConfigs = NULL; - - DeleteHash(&pCfgTypeHash); DeleteHash(&pRoomConfigs); + + CfgTypeHash = NULL; + DeleteHash(&pCfgTypeHash); } /*