Module: kamailio Branch: master Commit: db15dbfd66acaba17d525a391c0973d3fa8a7b4a URL: https://github.com/kamailio/kamailio/commit/db15dbfd66acaba17d525a391c0973d3...
Author: Alex Hermann alex@speakup.nl Committer: Alex Hermann alex@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/db15dbfd66acaba17d525a391c0973d3... Patch: https://github.com/kamailio/kamailio/commit/db15dbfd66acaba17d525a391c0973d3...
---
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{ \