Fix: release reference to trace chunk on index file creation failure
[lttng-tools.git] / src / common / index / index.c
index 7c73dcfbd9e597def9249377348a462e6a86bd75..b2e36211aa4f8a7f5ce9d2be2784d91e3954310f 100644 (file)
@@ -151,6 +151,7 @@ error:
                        PERROR("Failed to close file descriptor of index file");
                }
        }
+       lttng_trace_chunk_put(chunk);
        free(index_file);
        return NULL;
 }
This page took 0.025281 seconds and 4 git commands to generate.