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

Author: Pantelis Kolatsis <[email protected]>
Committer: Henning Westerholt <[email protected]>
Date: 2023-04-29T19:16:32Z

utils: convert to memory logging helper

---

Modified: src/modules/utils/xcap_auth.c

---

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

---

diff --git a/src/modules/utils/xcap_auth.c b/src/modules/utils/xcap_auth.c
index 425fa105cd0..20cac431132 100644
--- a/src/modules/utils/xcap_auth.c
+++ b/src/modules/utils/xcap_auth.c
@@ -416,12 +416,12 @@ int get_rules_doc(str* user, str* domain, int type, str** 
rules_doc)
 
        doc= (str*)pkg_malloc(sizeof(str));
        if (doc== NULL) {
-               ERR_MEM(PKG_MEM_STR);
+               PKG_MEM_ERROR;
        }
        doc->s= (char*)pkg_malloc(body.len* sizeof(char));
        if (doc->s== NULL) {
                pkg_free(doc);
-               ERR_MEM(PKG_MEM_STR);
+               PKG_MEM_ERROR;
        }
        memcpy(doc->s, body.s, body.len);
        doc->len= body.len;

_______________________________________________
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to [email protected]

Reply via email to