Module: kamailio Branch: master Commit: 01782191418f3d65c4aa5cb273140fec928d153a URL: https://github.com/kamailio/kamailio/commit/01782191418f3d65c4aa5cb273140fec928d153a
Author: Daniel-Constantin Mierla <mico...@gmail.com> Committer: Daniel-Constantin Mierla <mico...@gmail.com> Date: 2025-02-14T12:40:57+01:00 sca: free replaces hdr on anchor lump failure --- Modified: src/modules/sca/sca_call_info.c --- Diff: https://github.com/kamailio/kamailio/commit/01782191418f3d65c4aa5cb273140fec928d153a.diff Patch: https://github.com/kamailio/kamailio/commit/01782191418f3d65c4aa5cb273140fec928d153a.patch --- diff --git a/src/modules/sca/sca_call_info.c b/src/modules/sca/sca_call_info.c index b15a7251746..3d5471178c0 100644 --- a/src/modules/sca/sca_call_info.c +++ b/src/modules/sca/sca_call_info.c @@ -615,6 +615,7 @@ int sca_call_info_seize_held_call(sip_msg_t *msg, sca_call_info *call_info, anchor = anchor_lump(msg, msg->eoh - msg->buf, 0, HDR_OTHER_T); if(anchor == NULL) { LM_ERR("Failed to anchor lump\n"); + pkg_free(replaces_hdr.s); goto done; } @@ -638,7 +639,6 @@ int sca_call_info_seize_held_call(sip_msg_t *msg, sca_call_info *call_info, // we restore the original owner and dialog. if(sca_appearance_update_owner_unsafe(app, contact_uri) < 0) { LM_ERR("sca_call_info_seize_held_call: failed to update owner\n"); - pkg_free(replaces_hdr.s); goto done; } _______________________________________________ Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org To unsubscribe send an email to sr-dev-le...@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!