summaryrefslogtreecommitdiffstats
path: root/vpp-api/java/jvpp-registry
diff options
context:
space:
mode:
authorMaros Marsalek <mmarsale@cisco.com>2016-11-16 11:29:33 +0100
committerDamjan Marion <dmarion.lists@gmail.com>2016-11-17 10:04:55 +0000
commitc0f6cf36a519421cac89601a52a85aa792ddc20f (patch)
tree2ab67f362923e051966942fbf48273575555b187 /vpp-api/java/jvpp-registry
parentcfba1e2476f67ea7c17e764316d4a8d55425f663 (diff)
VPP-534 Remove references to DTOs created in JVpp
JVM objects allocated from a native thread need to be freed, they are not subject to GC. Change-Id: If1e140d2ceaec93631735ae7665f45db5aacf7cf Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Diffstat (limited to 'vpp-api/java/jvpp-registry')
-rw-r--r--vpp-api/java/jvpp-registry/jvpp_registry.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vpp-api/java/jvpp-registry/jvpp_registry.c b/vpp-api/java/jvpp-registry/jvpp_registry.c
index af20916e0d9..5d2326a0aa3 100644
--- a/vpp-api/java/jvpp-registry/jvpp_registry.c
+++ b/vpp-api/java/jvpp-registry/jvpp_registry.c
@@ -157,6 +157,7 @@ static void vl_api_control_ping_reply_t_handler(
(*env)->CallVoidMethod(env, rm->registryObject, callbackMethod,
dto);
+ (*env)->DeleteLocalRef(env, dto);
}
}