mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
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
This commit is contained in:
parent
3ed713db0d
commit
4c488d425d
1 changed files with 1 additions and 0 deletions
|
@ -687,6 +687,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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue