Module: kamailio
Branch: master
Commit: eb374d7167e9be15dca0a30a402418fb5993bf69
URL:
https://github.com/kamailio/kamailio/commit/eb374d7167e9be15dca0a30a402418f…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Jose Luis Verdeguer <pepeluxx(a)gmail.com>
Date: 2018-12-19T18:43:28+01:00
secfilter: free initial struct of shared memory on mod_destroy
---
Modified: src/modules/secfilter/secfilter.c
---
Diff:
https://github.com/kamailio/kamailio/commit/eb374d7167e9be15dca0a30a402418f…
Patch:
https://github.com/kamailio/kamailio/commit/eb374d7167e9be15dca0a30a402418f…
---
diff --git a/src/modules/secfilter/secfilter.c b/src/modules/secfilter/secfilter.c
index 4719513556..94d592e434 100644
--- a/src/modules/secfilter/secfilter.c
+++ b/src/modules/secfilter/secfilter.c
@@ -664,6 +664,8 @@ static void mod_destroy(void)
free_data();
/* Destroy lock */
lock_destroy(&secf_data->lock);
+ shm_free(secf_data);
+ secf_data = NULL;
}