Fix: don't destroy the sockets if the snapshot was successful
[lttng-tools.git] / src / bin / lttng-sessiond / cmd.c
index 942e770bac92e8fc56f053c378faa8e9ad65e95e..6f1f2514127efbc0d693b13f3f6375f42ff8a251 100644 (file)
@@ -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;
 }
 
This page took 0.024967 seconds and 4 git commands to generate.