From: Jérémie Galarneau Date: Mon, 9 Sep 2019 14:53:45 +0000 (-0400) Subject: Fix: destroy chunk registry on element creation failure X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=e441f4e920a6be99434617c7489cb289f9cf7f22;hp=e441f4e920a6be99434617c7489cb289f9cf7f22;p=lttng-tools.git Fix: destroy chunk registry on element creation failure A failure path in trace_chunk_registry_ht_element_create() does not destroy a newly created chunk registry, resulting in a leak. The ownership of the registry is transfered to the element being created as soon as possible. Error paths that release the reference on the new element will then naturally clean-up the trace chunk registry. Signed-off-by: Jérémie Galarneau ---