diff --git a/subprojects/gst-plugins-base/gst-libs/gst/pbutils/encoding-target.c b/subprojects/gst-plugins-base/gst-libs/gst/pbutils/encoding-target.c index bd9dcdf302..1b6e60d8a5 100644 --- a/subprojects/gst-plugins-base/gst-libs/gst/pbutils/encoding-target.c +++ b/subprojects/gst-plugins-base/gst-libs/gst/pbutils/encoding-target.c @@ -640,6 +640,8 @@ parse_encoding_profile (GKeyFile * in, gchar * parentprofilename, proftype = g_key_file_get_value (in, profilename, "type", NULL); if (!proftype) { GST_WARNING ("Missing 'type' field for streamprofile %s", profilename); + g_free (pname); + g_free (description); return NULL; }