X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fcompat%2Fdirectory-handle.c;h=f0139be29bced2a8f566d64dc0b77b49c93a3cca;hp=eb1cd926e6e2df0979d041a21532a7a6b141b050;hb=dd95933f8371a8c81ffc1dc5b306f2263f1ff808;hpb=9d16b343fb9e781fc8d8fa3c448a3f382306dd33 diff --git a/src/common/compat/directory-handle.c b/src/common/compat/directory-handle.c index eb1cd926e..f0139be29 100644 --- a/src/common/compat/directory-handle.c +++ b/src/common/compat/directory-handle.c @@ -181,6 +181,10 @@ void lttng_directory_handle_release(struct urcu_ref *ref) struct lttng_directory_handle *handle = container_of(ref, struct lttng_directory_handle, ref); + if (handle->destroy_cb) { + handle->destroy_cb(handle, handle->destroy_cb_data); + } + if (handle->dirfd == AT_FDCWD || handle->dirfd == -1) { goto end; }