The following commit has been merged in the master branch:
commit de230ab0730f00a4d1adefdb09232b46a83f52ac
Author: Guillem Jover <[email protected]>
Date: Thu Sep 17 17:49:23 2009 +0200
Fix small leak when parsing ‘--ignore-depends’ option values
diff --git a/debian/changelog b/debian/changelog
index f3df58a..ebe5c2b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,6 +8,7 @@ dpkg (1.15.5) UNRELEASED; urgency=low
* Check and warn on duplicate conffiles in dpkg-deb. Closes: #131633
* Make the upstream build system silent by default with automake 1.11 or
newer, and always verbose when building the Debian packages.
+ * Fix small leak when parsing ‘--ignore-depends’ option values.
[ Raphaël Hertzog ]
* Add versioned dependency on base-files (>= 5.0.0) to dpkg-dev to ensure
diff --git a/src/main.c b/src/main.c
index cda8380..4c29f47 100644
--- a/src/main.c
+++ b/src/main.c
@@ -287,6 +287,8 @@ static void ignoredepends(const struct cmdinfo *cip, const
char *value) {
p+= strlen(p)+1;
}
+
+ free(copy);
}
static void setinteger(const struct cmdinfo *cip, const char *value) {
--
dpkg's main repository
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]