X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fcmd.c;h=6f1f2514127efbc0d693b13f3f6375f42ff8a251;hb=5f82d262e2dd1a4e9a1d5457124afa16d726fbe3;hp=942e770bac92e8fc56f053c378faa8e9ad65e95e;hpb=38956b501df0cc3f5041c5604039c2ec2d8efa76;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/cmd.c b/src/bin/lttng-sessiond/cmd.c index 942e770ba..6f1f25141 100644 --- a/src/bin/lttng-sessiond/cmd.c +++ b/src/bin/lttng-sessiond/cmd.c @@ -2894,11 +2894,13 @@ static int record_kernel_snapshot(struct ltt_kernel_session *ksess, } 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; }