Module: kamailio Branch: master Commit: c3e6c1edc7531406208efe2965243e6e81506127 URL: https://github.com/kamailio/kamailio/commit/c3e6c1edc7531406208efe2965243e6e...
Author: Alexander Couzens lynxis@fe80.eu Committer: Henning Westerholt hw@gilawa.com Date: 2024-04-29T19:27:15+02:00
ims_registrar_scscf: free_uint_fixup: fix memleak/freeing the wrong parameter
The free_uint_fixup() freed the wrong parameter in the past.
---
Modified: src/modules/ims_registrar_scscf/ims_registrar_scscf_mod.c
---
Diff: https://github.com/kamailio/kamailio/commit/c3e6c1edc7531406208efe2965243e6e... Patch: https://github.com/kamailio/kamailio/commit/c3e6c1edc7531406208efe2965243e6e...
---
diff --git a/src/modules/ims_registrar_scscf/ims_registrar_scscf_mod.c b/src/modules/ims_registrar_scscf/ims_registrar_scscf_mod.c index 80535d77b5a..714ae571518 100644 --- a/src/modules/ims_registrar_scscf/ims_registrar_scscf_mod.c +++ b/src/modules/ims_registrar_scscf/ims_registrar_scscf_mod.c @@ -814,7 +814,7 @@ static int uint_fixup(void **param, int param_no)
static int free_uint_fixup(void **param, int param_no) { - if(*param && param_no == 2) { + if(*param && param_no == 4) { pkg_free(*param); *param = 0; }