[Reproducible-commits] [dpkg] 11/17: dpkg: Fix varbuf memory leaks

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


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

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

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

    dpkg: Fix varbuf memory leaks
    
    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 d62d635..f2c9203 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -18,6 +18,7 @@ dpkg (1.17.27) 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 leak in dpkg infodb format upgrade logic.
   * Build system:
     - Set PERL5LIB globally for the test suite to the local modules directory,
       to avoid using the system modules. Regression introduced in dpkg 1.17.8.
diff --git a/src/infodb-upgrade.c b/src/infodb-upgrade.c
index 68f9431..2360c9b 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