From 06f434bd8980f25ca23232eb7bb7df7e37dc8448 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Mon, 12 Oct 2015 20:31:44 +0300 Subject: [PATCH] liblzma: Add a note to index.c for those using static analyzers. --- src/liblzma/common/index.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/liblzma/common/index.c b/src/liblzma/common/index.c index e897646c..bc68244f 100644 --- a/src/liblzma/common/index.c +++ b/src/liblzma/common/index.c @@ -829,6 +829,9 @@ lzma_index_cat(lzma_index *restrict dest, lzma_index *restrict src, s->groups.rightmost = &newg->node; lzma_free(g, allocator); + + // NOTE: newg isn't leaked here because + // newg == (void *)&newg->node. } }