Fix: common: Dereference after null check
[lttng-tools.git] / src / common / trace-chunk.c
index affe3ac2050186043d5abd0590173e2f3296bd11..afba60b38e5c4301f8d322afb2062f1cbdfead67 100644 (file)
@@ -975,6 +975,7 @@ void lttng_trace_chunk_move_to_completed(struct lttng_trace_chunk *trace_chunk)
                                creation_timestamp, NULL);
                if (!directory_to_rename) {
                        ERR("Failed to generate initial trace chunk name while renaming trace chunk");
+                       goto end;
                }
                free_directory_to_rename = true;
        }
This page took 0.022845 seconds and 4 git commands to generate.