From dbcd150bce9dfff905c0e53e98072adc2ae87cd5 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Thu, 18 Feb 2010 18:38:26 -0600 Subject: [PATCH] Do not try to free the alias dict if it does not exist. --- src/s_conf.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/s_conf.c b/src/s_conf.c index 9190518b..b5004bcb 100644 --- a/src/s_conf.c +++ b/src/s_conf.c @@ -1221,8 +1221,11 @@ clear_out_old_conf(void) } /* remove any aliases... -- nenolod */ - irc_dictionary_destroy(alias_dict, free_alias_cb, NULL); - alias_dict = NULL; + if (alias_dict != NULL) + { + irc_dictionary_destroy(alias_dict, free_alias_cb, NULL); + alias_dict = NULL; + } destroy_blacklists();