From: Edward Hervey Date: Wed, 1 Nov 2017 09:53:54 +0000 (+0100) Subject: vorbistag: Fix leak in error case X-Git-Tag: 1.19.3~511^2~2078 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8e867aefe0f7041b1fcf6947604a807717c4450c;p=platform%2Fupstream%2Fgstreamer.git vorbistag: Fix leak in error case Don't leak the vendor_string on error cases --- diff --git a/gst-libs/gst/tag/gstvorbistag.c b/gst-libs/gst/tag/gstvorbistag.c index e3c2452..7ec4fb2 100644 --- a/gst-libs/gst/tag/gstvorbistag.c +++ b/gst-libs/gst/tag/gstvorbistag.c @@ -489,6 +489,10 @@ gst_tag_list_from_vorbiscomment (const guint8 * data, gsize size, return list; error: + if (vendor_string && *vendor_string) { + g_free (*vendor_string); + *vendor_string = NULL; + } gst_tag_list_unref (list); return NULL; #undef ADVANCE