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 80584d3..48a5f0b 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 7947918..ea935f1 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