Module: kamailio Branch: 6.0 Commit: 19210718b20fa3c0cccb5ed20879c13a34018f4a URL: https://github.com/kamailio/kamailio/commit/19210718b20fa3c0cccb5ed20879c13a34018f4a
Author: Victor Seva <[email protected]> Committer: Victor Seva <[email protected]> Date: 2026-05-04T11:45:19+02:00 ims_registrar_pcscf: Fix problems with double mem free, take three related #4671 * free params->data.ipsec always (cherry picked from commit 5f6dd0bb09fa33a07397902f9822fb5c1a370945) (cherry picked from commit bb74017208cdefdbc397d8b2474b73bde70e29f9) --- Modified: src/modules/ims_registrar_pcscf/sec_agree.c --- Diff: https://github.com/kamailio/kamailio/commit/19210718b20fa3c0cccb5ed20879c13a34018f4a.diff Patch: https://github.com/kamailio/kamailio/commit/19210718b20fa3c0cccb5ed20879c13a34018f4a.patch --- diff --git a/src/modules/ims_registrar_pcscf/sec_agree.c b/src/modules/ims_registrar_pcscf/sec_agree.c index 2cd0567329b..f7894ddc6c9 100644 --- a/src/modules/ims_registrar_pcscf/sec_agree.c +++ b/src/modules/ims_registrar_pcscf/sec_agree.c @@ -234,6 +234,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!
