This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch master in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=406af89c075f5ac0915e3dff19d1287b0876853c commit 406af89c075f5ac0915e3dff19d1287b0876853c Author: Guillem Jover <guil...@debian.org> AuthorDate: Fri Aug 21 03:42:30 2020 +0200 libdpkg: Fix memory leak in filesystem treewalk iterator We need to free the last element from the tree. Warned-by: gcc ASAN Stable-Candidate: 1.19.x --- lib/dpkg/treewalk.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/dpkg/treewalk.c b/lib/dpkg/treewalk.c index 3277f3131..08b70f34c 100644 --- a/lib/dpkg/treewalk.c +++ b/lib/dpkg/treewalk.c @@ -489,8 +489,10 @@ treewalk_next(struct treeroot *tree) break; } - if (tree->curdir == NULL) + if (tree->curdir == NULL) { + treenode_free_node(tree->rootnode); break; + } } treeroot_set_curnode(tree, node); -- Dpkg.Org's dpkg