diff --git a/gst/gstcaps.c b/gst/gstcaps.c index 01f8934be1..0d01951362 100644 --- a/gst/gstcaps.c +++ b/gst/gstcaps.c @@ -1049,6 +1049,7 @@ gst_caps_set_simple_valist (GstCaps * caps, const char *field, va_list varargs) G_VALUE_COLLECT_INIT (&value, type, varargs, 0, &err); if (G_UNLIKELY (err)) { g_critical ("%s", err); + g_free (err); return; } diff --git a/gst/gstchildproxy.c b/gst/gstchildproxy.c index 1bf983afa4..22c5d1aa0a 100644 --- a/gst/gstchildproxy.c +++ b/gst/gstchildproxy.c @@ -452,6 +452,7 @@ cant_copy: (GST_IS_OBJECT (object) ? GST_OBJECT_NAME (object) : ""), error); g_value_unset (&value); g_object_unref (target); + g_free (error); return; } } diff --git a/gst/gststructure.c b/gst/gststructure.c index b6f3d2ef83..d9b1dcf9ce 100644 --- a/gst/gststructure.c +++ b/gst/gststructure.c @@ -631,6 +631,7 @@ gst_structure_set_valist_internal (GstStructure * structure, G_VALUE_COLLECT_INIT (&field.value, type, varargs, 0, &err); if (G_UNLIKELY (err)) { g_critical ("%s", err); + g_free (err); return; } gst_structure_set_field (structure, &field); @@ -697,6 +698,7 @@ gst_structure_id_set_valist_internal (GstStructure * structure, G_VALUE_COLLECT_INIT (&field.value, type, varargs, 0, &err); if (G_UNLIKELY (err)) { g_critical ("%s", err); + g_free (err); return; } gst_structure_set_field (structure, &field); diff --git a/gst/gsttracerrecord.c b/gst/gsttracerrecord.c index 2446a6e9c6..639a4ccbb3 100644 --- a/gst/gsttracerrecord.c +++ b/gst/gsttracerrecord.c @@ -208,6 +208,7 @@ gst_tracer_record_new (const gchar * name, const gchar * firstfield, ...) G_VALUE_COLLECT_INIT (&val, type, varargs, G_VALUE_NOCOPY_CONTENTS, &err); if (G_UNLIKELY (err)) { g_critical ("%s", err); + g_free (err); break; } /* see boxed_proxy_collect_value */