Module: kamailio
Branch: master
Commit: 1dd341ad6bde264364a92cdb1747bbb654ca2e96
URL: 
https://github.com/kamailio/kamailio/commit/1dd341ad6bde264364a92cdb1747bbb654ca2e96

Author: Alex Hermann <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2026-02-27T09:06:59+01:00

uac: Fix freeing uninitialized pointer

And free a leaked pointer.

---

Modified: src/modules/uac/replace.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/1dd341ad6bde264364a92cdb1747bbb654ca2e96.diff
Patch: 
https://github.com/kamailio/kamailio/commit/1dd341ad6bde264364a92cdb1747bbb654ca2e96.patch

---

diff --git a/src/modules/uac/replace.c b/src/modules/uac/replace.c
index 8f60a703e81..0767df878c6 100644
--- a/src/modules/uac/replace.c
+++ b/src/modules/uac/replace.c
@@ -397,7 +397,7 @@ int replace_uri(struct sip_msg *msg, str *display, str *uri,
        }
        if(insert_new_lump_after(l, luri.s, luri.len, 0) == 0) {
                LM_ERR("insert new lump failed\n");
-               pkg_free(p);
+               pkg_free(luri.s);
                goto error;
        }
 

_______________________________________________
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!

Reply via email to