java: delete allocated array in JNI wrapper
java: delete allocated array in JNI wrapper

Signed-off-by: Petre Eftime <f6678a3167cad509dc066380a23bdcc0514aff10@intel.com>
Signed-off-by: Mihai Tudor Panu <a27de6130c5d32f5817bf40bb8b348582f37a8af@intel.com>

andreivasiliu2211/upm,g-vidal/upm,sasmita/upm,intel-iot-devkit/upm,g-vidal/upm,nitirohilla/upm,malikabhi05/upm,ShawnHymel/upm,spitfire88/upm,skiselev/upm,whbruce/upm,kissbac/upm,andreivasiliu2211/upm,stefan-andritoiu/upm,Vaghesh/upm,Jon-ICS/upm,whbruce/upm,tylergibson/upm,Jon-ICS/upm,malikabhi05/upm,skiselev/upm,nitirohilla/upm,nitirohilla/upm,andreivasiliu2211/upm,g-vidal/upm,pylbert/upm,afmckinney/upm,srware/upm,afmckinney/upm,yoyojacky/upm,mircea/upm,MakerCollider/upm,mircea/upm,Jon-ICS/upm,GSmurf/upm,Propanu/upm,malikabhi05/upm,tripzero/upm,GSmurf/upm,Propanu/upm,GSmurf/upm,pylbert/upm,andreivasiliu2211/upm,malikabhi05/upm,nitirohilla/upm,mircea/upm,skiselev/upm,Vaghesh/upm,yoyojacky/upm,ShawnHymel/upm,ShawnHymel/upm,intel-iot-devkit/upm,srware/upm,tylergibson/upm,sasmita/upm,spitfire88/upm,jontrulson/upm,Propanu/upm,rafaneri/upm,whbruce/upm,Vaghesh/upm,tripzero/upm,andreivasiliu2211/upm,nitirohilla/upm,spitfire88/upm,mircea/upm,pylbert/upm,kissbac/upm,intel-iot-devkit/upm,Propanu/upm,sasmita/upm,jontrulson/upm,arfoll/upm,jontrulson/upm,stefan-andritoiu/upm,skiselev/upm,afmckinney/upm,skiselev/upm,tylergibson/upm,tylergibson/upm,arfoll/upm,afmckinney/upm,ShawnHymel/upm,MakerCollider/upm,Propanu/upm,stefan-andritoiu/upm,malikabhi05/upm,intel-iot-devkit/upm,srware/upm,spitfire88/upm,yoyojacky/upm,jontrulson/upm,stefan-andritoiu/upm,mircea/upm,srware/upm,malikabhi05/upm,intel-iot-devkit/upm,jontrulson/upm,rafaneri/upm,pylbert/upm,arfoll/upm,yoyojacky/upm,ShawnHymel/upm,rafaneri/upm,g-vidal/upm,whbruce/upm,kissbac/upm,MakerCollider/upm,MakerCollider/upm,spitfire88/upm,kissbac/upm,afmckinney/upm,stefan-andritoiu/upm,GSmurf/upm,pylbert/upm,tripzero/upm,arfoll/upm,sasmita/upm,tripzero/upm,g-vidal/upm,Jon-ICS/upm,stefan-andritoiu/upm,Propanu/upm,srware/upm,rafaneri/upm,intel-iot-devkit/upm,Vaghesh/upm,Jon-ICS/upm,kissbac/upm,MakerCollider/upm,whbruce/upm,rafaneri/upm,g-vidal/upm,arfoll/upm,tripzero/upm,skiselev/upm,pylbert/upm,tylergibson/upm,sasmita/upm,yoyojacky/upm