Module: kamailio
Branch: master
Commit: 529a341609e00f55e05ec090ff99c54e5ac70a17
URL:
https://github.com/kamailio/kamailio/commit/529a341609e00f55e05ec090ff99c54…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2018-12-28T15:54:49+01:00
app_mono: use mem error macros
---
Modified: src/modules/app_mono/app_mono_api.c
---
Diff:
https://github.com/kamailio/kamailio/commit/529a341609e00f55e05ec090ff99c54…
Patch:
https://github.com/kamailio/kamailio/commit/529a341609e00f55e05ec090ff99c54…
---
diff --git a/src/modules/app_mono/app_mono_api.c b/src/modules/app_mono/app_mono_api.c
index 05b9d151a3..efd17e8226 100644
--- a/src/modules/app_mono/app_mono_api.c
+++ b/src/modules/app_mono/app_mono_api.c
@@ -83,7 +83,7 @@ int sr_mono_load_script(char *script)
mi = (sr_mono_load_t*)pkg_malloc(sizeof(sr_mono_load_t));
if(mi==NULL)
{
- LM_ERR("no more pkg\n");
+ PKG_MEM_ERROR;
return -1;
}
memset(mi, 0, sizeof(sr_mono_load_t));
@@ -771,7 +771,7 @@ static int sr_mono_hdr_append (MonoString *hv)
hdr = (char*)pkg_malloc(txt.len+1);
if(hdr==NULL)
{
- LM_ERR("no pkg memory left\n");
+ PKG_MEM_ERROR;
goto error;
}
memcpy(hdr, txt.s, txt.len);
@@ -866,7 +866,7 @@ static int sr_mono_hdr_insert (MonoString *hv)
hdr = (char*)pkg_malloc(txt.len+1);
if(hdr==NULL)
{
- LM_ERR("no pkg memory left\n");
+ PKG_MEM_ERROR;
goto error;
}
memcpy(hdr, txt.s, txt.len);