diff options
author | Edward Hervey <edward@centricular.com> | 2017-11-01 10:53:54 +0100 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2017-12-01 10:02:03 +0100 |
commit | 298bd9d82fa3632cc00f727c673e50064d422d9f (patch) | |
tree | a8332e1f7ee6a2405531e61586d2cf7ae969aee5 | |
parent | 54dd11fa640a5afd16c85e78f9e99022f40ac2f5 (diff) | |
download | gstreamer-plugins-base-298bd9d82fa3632cc00f727c673e50064d422d9f.tar.gz |
vorbistag: Fix leak in error case
Don't leak the vendor_string on error cases
-rw-r--r-- | gst-libs/gst/tag/gstvorbistag.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gst-libs/gst/tag/gstvorbistag.c b/gst-libs/gst/tag/gstvorbistag.c index e3c24529c..7ec4fb26c 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 |