Fix: don't destroy the sockets if the snapshot was successful
[lttng-tools.git] / src / bin / lttng-sessiond / cmd.c
index f18974b3888a5a49501c438224009b4e357bcf7b..26e8d152c2d02c9558f200f78a8af3da2c614033 100644 (file)
@@ -2866,11 +2866,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;
 }
 
This page took 0.022894 seconds and 4 git commands to generate.