diff options
author | Guillem Jover <guillem@debian.org> | 2009-09-17 17:49:23 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2009-09-19 19:21:55 +0200 |
commit | de230ab0730f00a4d1adefdb09232b46a83f52ac (patch) | |
tree | bc510ae39d93aec65c531964aebe6c8d2a46b0ab | |
parent | 251008842a464261333381b2d92e2ae9891970e6 (diff) | |
download | dpkg-de230ab0730f00a4d1adefdb09232b46a83f52ac.tar.gz |
Fix small leak when parsing ‘--ignore-depends’ option values
-rw-r--r-- | debian/changelog | 1 | ||||
-rw-r--r-- | src/main.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog index f3df58a09..ebe5c2bdb 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 cda838024..4c29f477b 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) { |