Module: kamailio
Branch: master
Commit: 66e9b02f7fc99084341d6519ac94cd580b334ac7
URL:
https://github.com/kamailio/kamailio/commit/66e9b02f7fc99084341d6519ac94cd5…
Author: Pantelis Kolatsis <pk(a)gilawa.com>
Committer: Henning Westerholt <hw(a)gilawa.com>
Date: 2023-03-22T09:52:17Z
app_lua_sr: convert to memory logging helper
---
Modified: src/modules/app_lua_sr/app_lua_sr_api.c
---
Diff:
https://github.com/kamailio/kamailio/commit/66e9b02f7fc99084341d6519ac94cd5…
Patch:
https://github.com/kamailio/kamailio/commit/66e9b02f7fc99084341d6519ac94cd5…
---
diff --git a/src/modules/app_lua_sr/app_lua_sr_api.c
b/src/modules/app_lua_sr/app_lua_sr_api.c
index dc1e14f17fc..7e9fc023656 100644
--- a/src/modules/app_lua_sr/app_lua_sr_api.c
+++ b/src/modules/app_lua_sr/app_lua_sr_api.c
@@ -276,7 +276,7 @@ static int lua_sr_modf (lua_State *L)
argv[i] = (char*)pkg_malloc(strlen(luav[i])+1);
if(argv[i]==NULL)
{
- LM_ERR("no more pkg\n");
+ PKG_MEM_ERROR;
goto error;
}
strcpy(argv[i], luav[i]);