From: Kazunori Kobayashi Date: Thu, 27 Jun 2013 12:59:29 +0000 (+0900) Subject: omx: Fix a missing g_free() in error path X-Git-Tag: accepted/tizen/common/20141107.141938^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen_3.0.2015.q1_common;p=platform%2Fupstream%2Fgst-omx.git omx: Fix a missing g_free() in error path This fixes a memory leak with g_strdup() when an error occurs. https://bugzilla.gnome.org/show_bug.cgi?id=731141 Change-Id: I333df2cc1197e2c04ca65f2f82889e9ce7c975d2 Signed-off-by: Kazunori Kobayashi --- diff --git a/omx/gstomx.c b/omx/gstomx.c index f542954..483d794 100644 --- a/omx/gstomx.c +++ b/omx/gstomx.c @@ -645,6 +645,7 @@ gst_omx_component_new (GstObject * parent, const gchar * core_name, "Failed to get component handle '%s' from core '%s': 0x%08x", component_name, core_name, err); gst_omx_core_release (core); + g_free (comp->name); g_slice_free (GstOMXComponent, comp); return NULL; }