diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/conf.c | 1 | ||||
-rw-r--r-- | src/main.c | 6 |
2 files changed, 6 insertions, 1 deletions
@@ -382,6 +382,5 @@ struct conf *conf_cur(void) void conf_close(void) { - mod_close(); conf_obj = mem_deref(conf_obj); } @@ -249,6 +249,12 @@ int main(int argc, char *argv[]) baresip_close(); + /* NOTE: modules must be unloaded after all application + * activity has stopped. + */ + debug("main: unloading modules..\n"); + mod_close(); + libre_close(); /* Check for memory leaks */ |