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>
This commit is contained in:
Maros Marsalek
2016-11-16 11:29:33 +01:00
committed by Damjan Marion
parent cfba1e2476
commit c0f6cf36a5
3 changed files with 7 additions and 0 deletions

View File

@ -157,6 +157,7 @@ static void vl_api_control_ping_reply_t_handler(
(*env)->CallVoidMethod(env, rm->registryObject, callbackMethod,
dto);
(*env)->DeleteLocalRef(env, dto);
}
}