]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
liblzma: Add a note to index.c for those using static analyzers.
authorLasse Collin <lasse.collin@tukaani.org>
Mon, 12 Oct 2015 17:31:44 +0000 (20:31 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Mon, 12 Oct 2015 17:31:44 +0000 (20:31 +0300)
src/liblzma/common/index.c

index 62e4f8ba3d68f90a333f6f96caec77e7b0dfb253..bc1ef29210b9ed48daf3e013dd98a4db3ab18760 100644 (file)
@@ -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.
                }
        }