X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Ftrace-chunk.c;h=afba60b38e5c4301f8d322afb2062f1cbdfead67;hp=affe3ac2050186043d5abd0590173e2f3296bd11;hb=c222b0167b6a89a1949875d0fe242772733c93af;hpb=89226f608e9186d52e88de8fee52a479ad0f08db diff --git a/src/common/trace-chunk.c b/src/common/trace-chunk.c index affe3ac20..afba60b38 100644 --- a/src/common/trace-chunk.c +++ b/src/common/trace-chunk.c @@ -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; }