ircd: various memory leak fixes from pull requests
This commit is contained in:
parent
87c44482d0
commit
55d5f7970a
6 changed files with 10 additions and 7 deletions
|
@ -707,6 +707,7 @@ unload_one_module(const char *name, int warn)
|
|||
lt_dlclose(modlist[modindex]->address);
|
||||
|
||||
rb_free(modlist[modindex]->name);
|
||||
rb_free(modlist[modindex]);
|
||||
memmove(&modlist[modindex], &modlist[modindex + 1],
|
||||
sizeof(struct module *) * ((num_mods - 1) - modindex));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue