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.7.0-rc2~3 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=aa9e070de8ef62964b0a3057ab3a79c332d693bc;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; }