aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2015-10-12 20:31:44 +0300
committerLasse Collin <lasse.collin@tukaani.org>2016-06-28 21:09:46 +0300
commit06f434bd8980f25ca23232eb7bb7df7e37dc8448 (patch)
treea5b70eaf7ff08c6a7df3a8c016ab05ee42c9f983
parentBump version and soname for 5.2.2. (diff)
downloadxz-06f434bd8980f25ca23232eb7bb7df7e37dc8448.tar.xz
liblzma: Add a note to index.c for those using static analyzers.
-rw-r--r--src/liblzma/common/index.c3
1 files changed, 3 insertions, 0 deletions
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.
}
}