matroskademux: don't leak doctype string in error code path
authorTim-Philipp Müller <tim@centricular.com>
Fri, 9 May 2014 13:22:42 +0000 (14:22 +0100)
committerEdward Hervey <bilboed@bilboed.com>
Mon, 2 Jun 2014 07:57:42 +0000 (09:57 +0200)
CID 1212145.

gst/matroska/matroska-read-common.c

index 42e1753..73381ba 100644 (file)
@@ -1213,7 +1213,7 @@ gst_matroska_read_common_parse_header (GstMatroskaReadCommon * common,
         if (num != GST_EBML_VERSION) {
           GST_ERROR_OBJECT (ebml, "Unsupported EBML version %" G_GUINT64_FORMAT,
               num);
-          return GST_FLOW_ERROR;
+          goto exit_error;
         }
 
         GST_DEBUG_OBJECT (ebml, "EbmlReadVersion: %" G_GUINT64_FORMAT, num);