memleak fix: decoder/bounding-box mp_palm
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 23 Aug 2023 06:06:35 +0000 (15:06 +0900)
committerjaeyun-jung <39614140+jaeyun-jung@users.noreply.github.com>
Wed, 23 Aug 2023 08:14:57 +0000 (17:14 +0900)
It has a few g_array that is not freed.
Fixes #4195

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
ext/nnstreamer/tensor_decoder/tensordec-boundingbox.c

index c3e2b0c..3da2391 100644 (file)
@@ -733,7 +733,10 @@ _mp_palm_detection_generate_anchors (properties_MP_PALM_DETECTION *palm_detectio
       layer_id = last_same_stride_layer;
     }
 
-    g_array_free(aspect_ratios, FALSE);
+    g_array_free (anchor_height, TRUE);
+    g_array_free (anchor_width, TRUE);
+    g_array_free (aspect_ratios, TRUE);
+    g_array_free (scales, TRUE);
   }
 }