X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=libust%2Flttng-ust-abi.c;h=16566c876664df8ae6a9e812ea126d2aa652ed77;hb=824f40b81426c6ac82685251018dae00947786a9;hp=cea8c30bffe8d29e39d4792bbfd6032b62c21d4c;hpb=193183fb924aef705f30358e54e7386a3a64c78d;p=ust.git diff --git a/libust/lttng-ust-abi.c b/libust/lttng-ust-abi.c index cea8c30..16566c8 100644 --- a/libust/lttng-ust-abi.c +++ b/libust/lttng-ust-abi.c @@ -179,13 +179,8 @@ void objd_table_destroy(void) for (i = 0; i < objd_table.allocated_len; i++) { struct obj *obj = _objd_get(i); - const struct objd_ops *ops; - if (!obj) - continue; - ops = obj->u.s.ops; - if (ops->release) - ops->release(i); + (void) objd_unref(i); } free(objd_table.array); objd_table.array = NULL; @@ -754,6 +749,7 @@ int lttng_rb_release(int objd) buf = priv->buf; channel = priv->ltt_chan; free(priv); + channel->ops->buffer_read_close(buf, channel->handle); return objd_unref(channel->objd); }