From: Jérémie Galarneau Date: Tue, 18 Feb 2020 01:13:49 +0000 (-0500) Subject: Fix: directory-handle: use of free'd handle on fstat() error X-Git-Tag: v2.13.0-rc1~749 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=b2081a0f39bce45b3d1cf063308a9b77712f1a9f;hp=b2081a0f39bce45b3d1cf063308a9b77712f1a9f Fix: directory-handle: use of free'd handle on fstat() error On an error to fstat a directory handle, a directory handle is released and is still initialized as if the error had not occurred. Return NULL early from lttng_directory_handle_create_from_dirfd() to prevent those erroneous accesses. Signed-off-by: Jérémie Galarneau Change-Id: Ia2a3bb1cfe8c90d3f7f87a68286a9b8524694d3c ---