From: Mathieu Desnoyers Date: Fri, 21 Aug 2015 23:11:56 +0000 (-0700) Subject: Fix: add missing ust lock around objd_table_destroy() X-Git-Tag: v2.8.0-rc1~103 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=701a658fd5a280b60d13795a95c2e6470fd24dde;p=lttng-ust.git Fix: add missing ust lock around objd_table_destroy() Signed-off-by: Mathieu Desnoyers --- 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; }