Module: kamailio
Branch: master
Commit: eef779ca7b5b203d216f76fbec56025d595f6e6d
URL:
https://github.com/kamailio/kamailio/commit/eef779ca7b5b203d216f76fbec56025…
Author: Pantelis Kolatsis <pk(a)gilawa.com>
Committer: Henning Westerholt <hw(a)gilawa.com>
Date: 2023-03-22T09:48:05Z
app_java: add missing free in error case
---
Modified: src/modules/app_java/java_native_methods.c
---
Diff:
https://github.com/kamailio/kamailio/commit/eef779ca7b5b203d216f76fbec56025…
Patch:
https://github.com/kamailio/kamailio/commit/eef779ca7b5b203d216f76fbec56025…
---
diff --git a/src/modules/app_java/java_native_methods.c
b/src/modules/app_java/java_native_methods.c
index bb2ebe6be70..a73fdc313de 100644
--- a/src/modules/app_java/java_native_methods.c
+++ b/src/modules/app_java/java_native_methods.c
@@ -1002,6 +1002,7 @@ JNIEXPORT jint JNICALL
Java_org_siprouter_CoreMethods_force_1send_1socket(
si = (struct socket_id *)pkg_malloc(sizeof(struct socket_id));
if(!si) {
PKG_MEM_ERROR;
+ pkg_free(nl);
return -1;
}