Module: kamailio
Branch: master
Commit: 04bcef64e0bf0cff3558ce3cb895439ab2cdd5c7
URL:
https://github.com/kamailio/kamailio/commit/04bcef64e0bf0cff3558ce3cb895439…
Author: Pantelis Kolatsis <pk(a)gilawa.com>
Committer: Henning Westerholt <hw(a)gilawa.com>
Date: 2023-04-24T19:43:37Z
rtimer: convert to memory logging helper
---
Modified: src/modules/rtimer/rtimer_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/04bcef64e0bf0cff3558ce3cb895439…
Patch:
https://github.com/kamailio/kamailio/commit/04bcef64e0bf0cff3558ce3cb895439…
---
diff --git a/src/modules/rtimer/rtimer_mod.c b/src/modules/rtimer/rtimer_mod.c
index 2b9fa12d431..cde900845cf 100644
--- a/src/modules/rtimer/rtimer_mod.c
+++ b/src/modules/rtimer/rtimer_mod.c
@@ -301,7 +301,7 @@ int stm_t_param(modparam_t type, void *val)
nt = (stm_timer_t*)pkg_malloc(sizeof(stm_timer_t));
if(nt==0)
{
- LM_ERR("no more pkg memory\n");
+ PKG_MEM_ERROR;
free_params(params_list);
return -1;
}
@@ -387,7 +387,7 @@ int stm_e_param(modparam_t type, void *val)
rt = (stm_route_t*)pkg_malloc(sizeof(stm_route_t));
if(rt==0)
{
- LM_ERR("no more pkg memory\n");
+ PKG_MEM_ERROR;
free_params(params_list);
return -1;
}