X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon%2Ftrace-chunk.c;h=afba60b38e5c4301f8d322afb2062f1cbdfead67;hb=979ee28a8a3276b7835cc40e0e0e989bc7f624b8;hp=affe3ac2050186043d5abd0590173e2f3296bd11;hpb=e1056f768710c75a22ec1f79e8337b52390e2530;p=lttng-tools.git 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; }