1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-07 01:23:12 +02:00

Fix two more small memory leaks on REHASH.

Now we are at zero leaks again with ASan, or so it seems.
This commit is contained in:
Bram Matthys
2021-07-02 11:42:00 +02:00
parent 12299b45bf
commit ee9db59d36
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -235,6 +235,7 @@ static void setcfg(struct cfgstruct *cfg)
static void freecfg(struct cfgstruct *cfg)
{
safe_free(cfg->masterdb);
safe_free(cfg->directory);
safe_free(cfg->db_secret);
}
+2
View File
@@ -117,6 +117,8 @@ MOD_LOAD()
MOD_UNLOAD()
{
safe_free(channelcfg);
safe_free(privatecfg);
return MOD_SUCCESS;
}