Module: kamailio
Branch: master
Commit: 56a843bb18b5f06d4ef88ed525d446a1ff298b3f
URL:
https://github.com/kamailio/kamailio/commit/56a843bb18b5f06d4ef88ed525d446a…
Author: Pantelis Kolatsis <pk(a)gilawa.com>
Committer: Henning Westerholt <hw(a)gilawa.com>
Date: 2023-04-24T19:32:29Z
dmq_usrloc: convert to memory logging helper
---
Modified: src/modules/dmq_usrloc/usrloc_sync.c
---
Diff:
https://github.com/kamailio/kamailio/commit/56a843bb18b5f06d4ef88ed525d446a…
Patch:
https://github.com/kamailio/kamailio/commit/56a843bb18b5f06d4ef88ed525d446a…
---
diff --git a/src/modules/dmq_usrloc/usrloc_sync.c b/src/modules/dmq_usrloc/usrloc_sync.c
index 62477198a27..657db6cb7cb 100644
--- a/src/modules/dmq_usrloc/usrloc_sync.c
+++ b/src/modules/dmq_usrloc/usrloc_sync.c
@@ -203,7 +203,7 @@ void usrloc_get_all_ucontact(dmq_node_t* node)
len = rval * 2;
buf = dmq_usrloc_malloc(len);
if (buf == NULL) {
- LM_ERR("out of pkg memory\n");
+ PKG_MEM_ERROR;
goto done;
}
rval = dmq_ul.get_all_ucontacts(buf, len, 0, 0, 1, 0);
@@ -453,7 +453,7 @@ static int init_usrloc_dmq_recv() {
LM_DBG("Initializing usrloc_dmq_recv for pid (%d)\n", my_pid());
usrloc_dmq_recv = (int*)pkg_malloc(sizeof(int));
if (!usrloc_dmq_recv) {
- LM_ERR("no more pkg memory\n");
+ PKG_MEM_ERROR;
return -1;
}
*usrloc_dmq_recv = 0;