Module: kamailio Branch: 6.0 Commit: 883fef1243e6e52ee4e20bdb811fb3e687b07812 URL: https://github.com/kamailio/kamailio/commit/883fef1243e6e52ee4e20bdb811fb3e687b07812
Author: Victor Seva <[email protected]> Committer: Victor Seva <[email protected]> Date: 2026-05-04T11:45:19+02:00 ims_ipsec_pcscf: Fix problems with double mem free, take three related #4670 * free paramas->data.ipsec always (cherry picked from commit c257ac9aeabadabc24be8e59dee6e85b74d556e2) (cherry picked from commit de4fc33ce90c3c11382eff3e8dc4789e0ec8c084) --- Modified: src/modules/ims_ipsec_pcscf/sec_agree.c --- Diff: https://github.com/kamailio/kamailio/commit/883fef1243e6e52ee4e20bdb811fb3e687b07812.diff Patch: https://github.com/kamailio/kamailio/commit/883fef1243e6e52ee4e20bdb811fb3e687b07812.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!
