Module: kamailio
Branch: master
Commit: 8bf54822b9f610eceae1b5c6006ab6cc5ed96d00
URL:
https://github.com/kamailio/kamailio/commit/8bf54822b9f610eceae1b5c6006ab6c…
Author: Pantelis Kolatsis <pk(a)gilawa.com>
Committer: Henning Westerholt <hw(a)gilawa.com>
Date: 2023-03-22T09:49:48Z
app_jsdt: fix log message for system memory allocation
---
Modified: src/modules/app_jsdt/app_jsdt_api.c
---
Diff:
https://github.com/kamailio/kamailio/commit/8bf54822b9f610eceae1b5c6006ab6c…
Patch:
https://github.com/kamailio/kamailio/commit/8bf54822b9f610eceae1b5c6006ab6c…
---
diff --git a/src/modules/app_jsdt/app_jsdt_api.c b/src/modules/app_jsdt/app_jsdt_api.c
index 5df1b2db716..548b27690fb 100644
--- a/src/modules/app_jsdt/app_jsdt_api.c
+++ b/src/modules/app_jsdt/app_jsdt_api.c
@@ -868,7 +868,7 @@ duk_ret_t dukopen_KSR(duk_context *J)
_sr_J_KSRMethods = malloc(SR_JSDT_KSR_METHODS_SIZE * sizeof(duk_function_list_entry));
if(_sr_J_KSRMethods==NULL) {
- LM_ERR("no more pkg memory\n");
+ SYS_MEM_ERROR;
return 0;
}
memset(_sr_J_KSRMethods, 0, SR_JSDT_KSR_METHODS_SIZE *
sizeof(duk_function_list_entry));