Module: kamailio
Branch: master
Commit: 4f44adcfbfaf84262f09f03afd8912205ce6c13b
URL:
https://github.com/kamailio/kamailio/commit/4f44adcfbfaf84262f09f03afd89122…
Author: Pantelis Kolatsis <pk(a)gilawa.com>
Committer: Henning Westerholt <hw(a)gilawa.com>
Date: 2023-04-24T19:27:45Z
outbound: convert to memory logging helper
---
Modified: src/modules/outbound/outbound_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/4f44adcfbfaf84262f09f03afd89122…
Patch:
https://github.com/kamailio/kamailio/commit/4f44adcfbfaf84262f09f03afd89122…
---
diff --git a/src/modules/outbound/outbound_mod.c b/src/modules/outbound/outbound_mod.c
index df9538aace8..bed8c03fbb4 100644
--- a/src/modules/outbound/outbound_mod.c
+++ b/src/modules/outbound/outbound_mod.c
@@ -101,7 +101,7 @@ static int mod_init(void)
if ((ob_key.s = shm_malloc(OB_KEY_LEN)) == NULL)
{
- LM_ERR("Failed to allocate memory for flow-token key\n");
+ SHM_MEM_ERROR_FMT("for flow-token key\n");
return -1;
}
ob_key.len = OB_KEY_LEN;
@@ -210,7 +210,7 @@ int encode_flow_token(str *flow_token, struct receive_info *rcv)
flow_token->s = pkg_malloc(base64_enc_len(pos));
if (flow_token->s == NULL)
{
- LM_ERR("allocating package memory\n");
+ PKG_MEM_ERROR;
return -1;
}
flow_token->len = base64_enc(unenc_flow_token, pos,