From 5cab7236510f01af42452cc269b19ee2bd44687b Mon Sep 17 00:00:00 2001 From: Luis de Bethencourt Date: Mon, 1 Aug 2016 15:52:11 +0100 Subject: [PATCH] ogg: fix memory leak in gst_ogg_parse_new_stream Avoid leaking the stream object https://bugzilla.gnome.org/show_bug.cgi?id=769299 --- ext/ogg/gstoggparse.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/ogg/gstoggparse.c b/ext/ogg/gstoggparse.c index 1d7107b..b9754a1 100644 --- a/ext/ogg/gstoggparse.c +++ b/ext/ogg/gstoggparse.c @@ -148,6 +148,7 @@ gst_ogg_parse_new_stream (GstOggParse * parser, ogg_page * page) if (ogg_stream_init (&stream->stream, serialno) != 0) { GST_ERROR ("Could not initialize ogg_stream struct for serial %08x.", serialno); + g_slice_free (GstOggStream, stream); return NULL; } -- 2.7.4