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