X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=libust%2Flttng-ust-abi.c;h=6eb74ed8170d2b5ae1bdcd2c63a7fc57dc0af14e;hb=fb50c39dd77bec752b9695345fc2fab6cc7b9b46;hp=16566c876664df8ae6a9e812ea126d2aa652ed77;hpb=824f40b81426c6ac82685251018dae00947786a9;p=lttng-ust.git diff --git a/libust/lttng-ust-abi.c b/libust/lttng-ust-abi.c index 16566c87..6eb74ed8 100644 --- a/libust/lttng-ust-abi.c +++ b/libust/lttng-ust-abi.c @@ -177,11 +177,8 @@ void objd_table_destroy(void) { int i; - for (i = 0; i < objd_table.allocated_len; i++) { - struct obj *obj = _objd_get(i); - + for (i = 0; i < objd_table.allocated_len; i++) (void) objd_unref(i); - } free(objd_table.array); objd_table.array = NULL; objd_table.len = 0; @@ -730,7 +727,7 @@ static const struct objd_ops lttng_metadata_ops = { static long lttng_rb_cmd(int objd, unsigned int cmd, unsigned long arg) { - struct stream_priv_data *priv = objd_private(objd); + //struct stream_priv_data *priv = objd_private(objd); switch (cmd) { default: