From 41d2ab71e4d18b7aa5c240eb3a2ed78eb41e0e52 Mon Sep 17 00:00:00 2001 From: Jonathan Rajotte Date: Fri, 20 Sep 2019 10:47:30 -0400 Subject: [PATCH] Fix: release reference to new chunk on copy error MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes coverity #1405775 Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau --- src/common/trace-chunk.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/trace-chunk.c b/src/common/trace-chunk.c index 6770bd982..601d402e0 100644 --- a/src/common/trace-chunk.c +++ b/src/common/trace-chunk.c @@ -367,6 +367,7 @@ end: return new_chunk; error_unlock: pthread_mutex_unlock(&source_chunk->lock); + lttng_trace_chunk_put(new_chunk); return NULL; } -- 2.34.1