validate: plug some leaks

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3319>
This commit is contained in:
Edward Hervey 2022-11-03 14:05:59 +01:00 committed by GStreamer Marge Bot
parent 7f86e925e2
commit 094d27585e
2 changed files with 3 additions and 0 deletions

View 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);

View 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;