mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-01 07:36:38 +02:00
- Fixed minor badwords /rehash memleak.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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++)
|
||||
|
||||
Reference in New Issue
Block a user