validate: plug some leaks
authorEdward Hervey <edward@centricular.com>
Thu, 3 Nov 2022 13:05:59 +0000 (14:05 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 4 Nov 2022 17:59:21 +0000 (17:59 +0000)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3319>

subprojects/gst-devtools/validate/gst/validate/gst-validate-utils.c
subprojects/gst-devtools/validate/plugins/ssim/gstvalidatessim.c

index 2d3c0e1..b6a3173 100644 (file)
@@ -769,6 +769,7 @@ _file_get_structures (GFile * file, gchar ** err,
               /* We let the last attempt fail and report an error in the
                * including code path */
             }
+            g_strfreev (include_dirs);
           }
 
           included_path = g_file_get_path (included);
index ade5667..37cad8a 100644 (file)
@@ -180,6 +180,8 @@ runner_stopping (GstValidateRunner * runner, ValidateSsimOverride * self)
     else
       npassed++;
 
+    g_free (ref_path);
+
     min_avg = MIN (min_avg, mssim);
     min_min = MIN (lowest, min_min);
     total_avg += mssim;