return lus;
error_free_session:
+ lttng_ht_destroy(lus->domain_global.channels);
+ lttng_ht_destroy(lus->domain_exec);
+ lttng_ht_destroy(lus->domain_pid);
free(lus);
error:
return NULL;
return luc;
error_free_channel:
+ lttng_ht_destroy(luc->ctx);
+ lttng_ht_destroy(luc->events);
free(luc);
error:
return NULL;
return lue;
error_free_event:
+ lttng_ht_destroy(lue->ctx);
free(lue);
error:
return NULL;
ustctl_release_object(sock, ua_sess->metadata->obj);
free(ua_sess->metadata->obj);
}
+ trace_ust_destroy_metadata(ua_sess->metadata);
}
cds_lfht_for_each_entry(ua_sess->channels->ht, &iter.iter, ua_chan,
&ustream->obj);
if (ret < 0) {
/* Got all streams */
+ free(ustream);
break;
}
ustream->handle = ustream->obj->handle;
ua_chan->streams.count++);
if (ret < 0) {
PERROR("asprintf UST create stream");
+ /*
+ * XXX what should we do here with the
+ * stream ?
+ */
continue;
}
DBG2("UST stream %d ready at %s", ua_chan->streams.count,