Module: kamailio
Branch: master
Commit: b9de5009f81e27934a2108c06eae27ea748ead37
URL:
https://github.com/kamailio/kamailio/commit/b9de5009f81e27934a2108c06eae27e…
Author: Henning Westerholt <hw(a)gilawa.com>
Committer: Henning Westerholt <hw(a)gilawa.com>
Date: 2023-03-22T12:58:56Z
benchmark: fix order of free operation
---
Modified: src/modules/benchmark/benchmark.c
---
Diff:
https://github.com/kamailio/kamailio/commit/b9de5009f81e27934a2108c06eae27e…
Patch:
https://github.com/kamailio/kamailio/commit/b9de5009f81e27934a2108c06eae27e…
---
diff --git a/src/modules/benchmark/benchmark.c b/src/modules/benchmark/benchmark.c
index 09af04abf8..08e7c1ccc4 100644
--- a/src/modules/benchmark/benchmark.c
+++ b/src/modules/benchmark/benchmark.c
@@ -443,8 +443,8 @@ int _bm_register_timer(char *tname, int mode, unsigned int *id)
if(bm_mycfg->tindex==0)
{
SHM_MEM_ERROR;
- shm_free(bmt);
pkg_free(bmt->start);
+ shm_free(bmt);
if(tidx!=0)
shm_free(tidx);
return -1;