Fix: don't destroy the sockets if the snapshot was successful
[lttng-tools.git] / src / bin / lttng-sessiond / cmd.c
index d3c8376be1a01cf691f4a02be1ffe93c09c4a6b0..d91869fae8c5d69ac3c3ad88ca20e9a902d0f587 100644 (file)
@@ -4179,10 +4179,13 @@ static enum lttng_error_code record_ust_snapshot(struct ltt_ust_session *usess,
                goto error_snapshot;
        }
 
+       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 status;
 }
 
This page took 0.02466 seconds and 4 git commands to generate.