1
0
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:
Bram Matthys
2022-05-25 16:52:41 +02:00
parent 4deeec015b
commit c86e5a3c2d
+5
View File
@@ -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));
}