[Reproducible-commits] [dpkg] 05/10: dpkg: Fix varbuf memory leak

Holger Levsen holger at layer-acht.org
Tue May 3 08:44:04 UTC 2016


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to annotated tag 1.16.18
in repository dpkg.

commit 281d040a8f24d62c41a69159269aec86cb8a5623
Author: Guillem Jover <guillem at debian.org>
Date:   Sat Oct 17 05:54:25 2015 +0200

    dpkg: Fix varbuf memory leak
    
    In the dpkg infodb format upgrade logic.
    
    This is not a big leak, is just one instance of a leaked varbuf.
---
 debian/changelog     | 1 +
 src/infodb-upgrade.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index a1265ac..35496b7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -14,6 +14,7 @@ dpkg (1.16.18) UNRELEASED; urgency=medium
     state, otherwise we end up not passing the previously configured version
     to «postinst configure», which might consider this a first install instead
     of an upgrade. Closes: #801156
+  * Fix memory leaks in dpkg infodb format upgrade logic.
 
  -- Guillem Jover <guillem at debian.org>  Sat, 19 Mar 2016 19:13:34 +0100
 
diff --git a/src/infodb-upgrade.c b/src/infodb-upgrade.c
index 5ccd2fe..3cb4c15 100644
--- a/src/infodb-upgrade.c
+++ b/src/infodb-upgrade.c
@@ -149,6 +149,7 @@ pkg_infodb_link_multiarch_files(void)
 	}
 	pop_cleanup(ehflag_normaltidy); /* closedir */
 
+	varbuf_destroy(&pkgname);
 	varbuf_destroy(&newname);
 	varbuf_destroy(&oldname);
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/dpkg.git



More information about the Reproducible-commits mailing list