Fix: old gcc warning
[lttng-ust.git] / liblttng-ust / lttng-ust-abi.c
index 61245a88dfcc2cd18b2163e8016b199e6a26d2d5..c06f69dca5a0982d28ed00e45fadd0ea5ae4446c 100644 (file)
@@ -185,6 +185,7 @@ static
 void objd_ref(int id)
 {
        struct lttng_ust_obj *obj = _objd_get(id);
+       assert(obj != NULL);
        obj->u.s.f_count++;
 }
 
@@ -988,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;
 }
This page took 0.023471 seconds and 4 git commands to generate.