瀏覽代碼

Fix small leak when parsing ‘--ignore-depends’ option values

Guillem Jover 17 年之前
父節點
當前提交
de230ab073
共有 2 個文件被更改,包括 3 次插入0 次删除
  1. 1 0
      debian/changelog
  2. 2 0
      src/main.c

+ 1 - 0
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

+ 2 - 0
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) {