Module: kamailio Branch: master Commit: c257ac9aeabadabc24be8e59dee6e85b74d556e2 URL: https://github.com/kamailio/kamailio/commit/c257ac9aeabadabc24be8e59dee6e85b74d556e2
Author: Victor Seva <[email protected]> Committer: Victor Seva <[email protected]> Date: 2026-05-04T11:44:20+02:00 ims_ipsec_pcscf: Fix problems with double mem free, take three related #4670 * free paramas->data.ipsec always --- Modified: src/modules/ims_ipsec_pcscf/sec_agree.c --- Diff: https://github.com/kamailio/kamailio/commit/c257ac9aeabadabc24be8e59dee6e85b74d556e2.diff Patch: https://github.com/kamailio/kamailio/commit/c257ac9aeabadabc24be8e59dee6e85b74d556e2.patch --- diff --git a/src/modules/ims_ipsec_pcscf/sec_agree.c b/src/modules/ims_ipsec_pcscf/sec_agree.c index ee10748c30a..2df9d60bbdf 100644 --- a/src/modules/ims_ipsec_pcscf/sec_agree.c +++ b/src/modules/ims_ipsec_pcscf/sec_agree.c @@ -311,6 +311,8 @@ static security_t *parse_sec_agree(struct hdr_field *h) if(params->data.ipsec->mod.s) shm_free(params->data.ipsec->mod.s); shm_free(params->data.ipsec); + } else { + shm_free(params->data.ipsec); } shm_free(params); _______________________________________________ Kamailio - Development Mailing List -- [email protected] To unsubscribe send an email to [email protected] Important: keep the mailing list in the recipients, do not reply only to the sender!
