From a57dc5a06c3a2d6e84be7f17f5b106c524a1dc32 Mon Sep 17 00:00:00 2001 From: Gilbok Lee Date: Tue, 15 Sep 2020 16:29:40 +0900 Subject: [PATCH] avidemux: Fix coverity issue (Resource leak) Change-Id: I28674d2e37e814039506f08de96ae0f49b3cef25 --- gst/avi/gstavidemux.c | 3 +++ packaging/gst-plugins-good.spec | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gst/avi/gstavidemux.c b/gst/avi/gstavidemux.c index 834af76..4c3e3d9 100644 --- a/gst/avi/gstavidemux.c +++ b/gst/avi/gstavidemux.c @@ -2383,6 +2383,9 @@ gst_avi_demux_parse_stream (GstAviDemux * avi, GstBuffer * buf) /* no caps means no stream */ if (!caps) { GST_ERROR_OBJECT (element, "Did not find caps for stream %s", padname); +#ifdef TIZEN_FEATURE_AVIDEMUX_MODIFICATION + g_free (padname); +#endif goto fail; } diff --git a/packaging/gst-plugins-good.spec b/packaging/gst-plugins-good.spec index dd24215..170555b 100644 --- a/packaging/gst-plugins-good.spec +++ b/packaging/gst-plugins-good.spec @@ -3,7 +3,7 @@ Name: gst-plugins-good Version: 1.16.2 -Release: 10 +Release: 11 License: LGPL-2.1+ Summary: GStreamer Streaming-Media Framework Plug-Ins Url: http://gstreamer.freedesktop.org/ @@ -87,6 +87,7 @@ export CFLAGS+=" \ -DTIZEN_FEATURE_RGVOLUME_MODIFICATION\ -DTIZEN_FEATURE_BASEPARSE_MODIFICATION\ -DTIZEN_FEATURE_DISABLE_V4L2_DEPENDENCY\ + -DTIZEN_FEATURE_AVIDEMUX_MODIFICATION\ -DTIZEN_FEATURE_USE_LIBV4L2\ -fstack-protector-strong\ -Wl,-z,relro\ -- 2.7.4