From 5eb6aa636c888dd0c6907db2d559d236eb3c9de5 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Fri, 21 Aug 2015 16:11:56 -0700 Subject: [PATCH] Fix: add missing ust lock around objd_table_destroy() Signed-off-by: Mathieu Desnoyers --- liblttng-ust/lttng-ust-abi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/liblttng-ust/lttng-ust-abi.c b/liblttng-ust/lttng-ust-abi.c index 7e513a98..c06f69dc 100644 --- a/liblttng-ust/lttng-ust-abi.c +++ b/liblttng-ust/lttng-ust-abi.c @@ -989,6 +989,8 @@ static const struct lttng_ust_objd_ops lttng_enabler_ops = { void lttng_ust_abi_exit(void) { lttng_ust_abi_close_in_progress = 1; + ust_lock_nocheck(); objd_table_destroy(); + ust_unlock(); lttng_ust_abi_close_in_progress = 0; } -- 2.34.1