[Android/Custom] free tensors-info handle
authorJaeyun <jy1210.jung@samsung.com>
Tue, 11 Aug 2020 09:21:48 +0000 (18:21 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 12 Aug 2020 08:16:35 +0000 (17:16 +0900)
After converting info object in registration, free tensors-info handles.

Signed-off-by: Jaeyun <jy1210.jung@samsung.com>
api/android/api/src/main/jni/nnstreamer-native-customfilter.c

index 79b1dc7..698cd89 100644 (file)
@@ -202,6 +202,8 @@ nns_native_custom_initialize (JNIEnv * env, jobject thiz, jstring name,
 
 done:
   (*env)->ReleaseStringUTFChars (env, name, model_name);
+  ml_tensors_info_destroy (in_info);
+  ml_tensors_info_destroy (out_info);
 
   if (!is_done) {
     nns_destroy_pipe_info (pipe_info, env);