encoding-target: free fullname on failure

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/9115>
This commit is contained in:
Doug Nazar 2025-05-28 08:42:15 -04:00 committed by GStreamer Marge Bot
parent fdbc6deb39
commit 6aca08f155

View File

@ -1213,8 +1213,10 @@ sub_get_all_targets (gchar * subdir)
if (target) {
target->path = fullname;
res = g_list_append (res, target);
} else
} else {
GST_WARNING ("Failed to get a target from %s", fullname);
g_free (fullname);
}
}
g_dir_close (dir);