From 09f395b6b360c0b13e8559eece1d179b908ebd3a Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Mon, 12 Oct 2015 20:31:44 +0300 Subject: 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 62e4f8ba..bc1ef292 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. } } -- cgit v1.2.3