From dc70bfd36a8851eb42010773165ad8b7f7f19d49 Mon Sep 17 00:00:00 2001 From: Vineeth TM Date: Tue, 16 Feb 2016 09:02:30 +0900 Subject: [PATCH] avidemux: Fix string memory leak codec_name is not being freed in all conditions leading to memory leak https://bugzilla.gnome.org/show_bug.cgi?id=762117 --- gst/avi/gstavidemux.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gst/avi/gstavidemux.c b/gst/avi/gstavidemux.c index 4a80cd6036..de16681e5d 100644 --- a/gst/avi/gstavidemux.c +++ b/gst/avi/gstavidemux.c @@ -2452,9 +2452,8 @@ gst_avi_demux_parse_stream (GstAviDemux * avi, GstBuffer * buf) gst_tag_list_add (stream->taglist, GST_TAG_MERGE_APPEND, tag_name, codec_name, NULL); - g_free (codec_name); } - + g_free (codec_name); gst_buffer_unref (buf); return TRUE;