From 8aefa6cdce1d7ce854ea6c95fecff933d4bfc454 Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Thu, 24 Apr 2003 02:13:28 +0000 Subject: [PATCH] - Fixed minor badwords /rehash memleak. --- Changes | 1 + src/s_conf.c | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/Changes b/Changes index b9e37192f..574b4336f 100644 --- a/Changes +++ b/Changes @@ -2078,3 +2078,4 @@ seen. gmtime warning still there - Enabled throttling support by default, you need to have a (correct) set::throttle block to make it work, otherwise it's just turned off. - Some code cleanups (s_conf.c, now has a config_setdefaultsettings()). +- Fixed minor badwords /rehash memleak. diff --git a/src/s_conf.c b/src/s_conf.c index 92b5c1da1..1ab533f4c 100644 --- a/src/s_conf.c +++ b/src/s_conf.c @@ -4295,7 +4295,6 @@ int _conf_badword(ConfigFile *conf, ConfigEntry *ce) } else { char *tmpw; ca->type = BADW_TYPE_FAST; - ircstrdup(ca->word, cep->ce_vardata); ca->word = tmpw = MyMalloc(strlen(cep->ce_vardata) - ast_l - ast_r + 1); /* Copy except for asterisks */ for (tmp = cep->ce_vardata; *tmp; tmp++)