]> git.saurik.com Git - apt.git/commitdiff
apt-pkg/contrib/configuration.cc: Fix a small memory leak in
authorJulian Andres Klode <jak@debian.org>
Fri, 12 Jun 2009 17:07:40 +0000 (19:07 +0200)
committerJulian Andres Klode <jak@debian.org>
Fri, 12 Jun 2009 17:07:40 +0000 (19:07 +0200)
ReadConfigFile.

apt-pkg/contrib/configuration.cc
debian/changelog

index 80584d3eabbd9f625552941edd3786e31a1c2d3f..48a5f0bff1f26551602339623592d96d85a1ee22 100644 (file)
@@ -521,6 +521,7 @@ bool ReadConfigFile(Configuration &Conf,const string &FName,bool AsSectional,
          F.getline(Buffer,sizeof(Buffer) / 2);
 
          Input += Buffer;
+         delete[] Buffer;
        }
       while (F.fail() && !F.eof());
 
index 7947918a4edf4a65285985605a654a8a5aec0745..ea935f1440f5080cb8817091e7955a0900d5dfa7 100644 (file)
@@ -21,6 +21,10 @@ apt (0.7.22) UNRELEASED; urgency=low
   * [ABI break] support '#' in apt.conf and /etc/apt/preferences
     (closes: #189866)
 
+  [ Julian Andres Klode ]
+  * apt-pkg/contrib/configuration.cc: Fix a small memory leak in
+    ReadConfigFile.
+
  -- Christian Perrier <bubulle@debian.org>  Wed, 22 Apr 2009 10:13:54 +0200
 
 apt (0.7.21) unstable; urgency=low