X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fcmd.c;h=16f4849bc7c7a4b888ee0e788c42c7443b8a0bda;hb=d8f48b249f7b05de04eada78d28b630d3783f827;hp=91040ec1ede9b83043815d4ca468b256b2ae3468;hpb=6bfc8da05c035890b24a6563647ad35afeee0ed8;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/cmd.c b/src/bin/lttng-sessiond/cmd.c index 91040ec1e..16f4849bc 100644 --- a/src/bin/lttng-sessiond/cmd.c +++ b/src/bin/lttng-sessiond/cmd.c @@ -3846,11 +3846,13 @@ static int record_ust_snapshot(struct ltt_ust_session *usess, } ret = LTTNG_OK; + goto end; error_snapshot: /* Clean up copied sockets so this output can use some other later on. */ consumer_destroy_output_sockets(output->consumer); error: +end: return ret; }