[sr-dev] git:master:db15dbfd: dispatcher: free memory on shutdown
Alex Hermann
alex at speakup.nl
Tue Aug 30 13:51:37 CEST 2016
Module: kamailio
Branch: master
Commit: db15dbfd66acaba17d525a391c0973d3fa8a7b4a
URL: https://github.com/kamailio/kamailio/commit/db15dbfd66acaba17d525a391c0973d3fa8a7b4a
Author: Alex Hermann <alex at speakup.nl>
Committer: Alex Hermann <alex at speakup.nl>
Date: 2016-08-02T12:46:19+02:00
dispatcher: free memory on shutdown
Debugging memleaks is easier when the list of alloc'ed shmem is shorter.
---
Modified: modules/dispatcher/dispatcher.c
---
Diff: https://github.com/kamailio/kamailio/commit/db15dbfd66acaba17d525a391c0973d3fa8a7b4a.diff
Patch: https://github.com/kamailio/kamailio/commit/db15dbfd66acaba17d525a391c0973d3fa8a7b4a.patch
---
diff --git a/modules/dispatcher/dispatcher.c b/modules/dispatcher/dispatcher.c
index 478c96f..892ec18 100644
--- a/modules/dispatcher/dispatcher.c
+++ b/modules/dispatcher/dispatcher.c
@@ -596,7 +596,8 @@ static void destroy(void)
ds_hash_load_destroy();
if(ds_ping_reply_codes)
shm_free(ds_ping_reply_codes);
-
+ if(ds_ping_reply_codes_cnt)
+ shm_free(ds_ping_reply_codes_cnt);
}
#define GET_VALUE(param_name,param,i_value,s_value,value_flags) do{ \
More information about the sr-dev
mailing list