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

Author: Daniel-Constantin Mierla <mico...@gmail.com>
Committer: Daniel-Constantin Mierla <mico...@gmail.com>
Date: 2025-05-28T21:28:46+02:00

ims_ipsec_pcscf: jump to error for clean up

---

Modified: src/modules/ims_ipsec_pcscf/cmd.c

---

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

---

diff --git a/src/modules/ims_ipsec_pcscf/cmd.c 
b/src/modules/ims_ipsec_pcscf/cmd.c
index e15de4e2de8..4672a45906a 100644
--- a/src/modules/ims_ipsec_pcscf/cmd.c
+++ b/src/modules/ims_ipsec_pcscf/cmd.c
@@ -272,7 +272,7 @@ static int fill_contact(
 
                                if((srcip = pkg_malloc(50)) == NULL) {
                                        LM_ERR("Error allocating memory for 
source IP address\n");
-                                       return -1;
+                                       goto error;
                                }
 
                                memcpy(srcip, alias_s.s, ci->received_host.len);

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

Reply via email to