mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-06 22:43:12 +02:00
Fix memory leak on REHASH when using parameter modes in set::modes-on-join
This commit is contained in:
@@ -577,6 +577,11 @@ long config_checkval(const char *orig, unsigned short flags)
|
||||
/** Free configuration setting for set::modes-on-join */
|
||||
void free_conf_channelmodes(struct ChMode *store)
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i=0; i < 255; i++)
|
||||
safe_free(store->extparams[i]);
|
||||
|
||||
memset(store, 0, sizeof(struct ChMode));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user