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.5.6~2 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=28ae8cd513ae548a8c9ab565f60b821077fc252e;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; }