[Filter] Fix coverity issue, pointer out of scope.
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Mon, 26 Nov 2018 05:18:52 +0000 (14:18 +0900)
committerJijoong Moon <jijoong.moon@samsung.com>
Tue, 27 Nov 2018 06:14:56 +0000 (15:14 +0900)
This fixes the coverity issue, pointer out of scope.

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
gst/tensor_filter/tensor_filter.c

index 8325928..298e0ad 100644 (file)
@@ -909,6 +909,8 @@ _compare_tensors (GstTensorsInfo * info1, GstTensorsInfo * info2)
     g_free (line);
   }
 
+  if (result == null)
+    return NULL;
   return result;
 }