X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=sidebyside;f=src%2Fcommon%2Ftrace-chunk.c;h=20dbd0a5ea933a853d328332d4c04def960fd917;hb=40e14884a7f6606e387cdfa00f66d49a54cf311c;hp=affe3ac2050186043d5abd0590173e2f3296bd11;hpb=6b584c2ece62c620a86cf438bb358a9da7962b7e;p=lttng-tools.git diff --git a/src/common/trace-chunk.c b/src/common/trace-chunk.c index affe3ac20..20dbd0a5e 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; } @@ -1268,7 +1269,7 @@ lttng_trace_chunk_registry_publish_chunk( * * Re-attempt to publish. */ - ERR("Attemp to publish a trace chunk to the chunk registry raced with a trace chunk deletion"); + ERR("Attempt to publish a trace chunk to the chunk registry raced with a trace chunk deletion"); continue; } }