summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 0028465..2fe552a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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 */