[cmdline/apt-cache.cc] fix a memory leak in the xvcg method
authorDavid Kalnischkies <kalnischkies@gmail.com>
Sat, 8 Aug 2009 10:40:00 +0000 (12:40 +0200)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Sat, 8 Aug 2009 10:40:00 +0000 (12:40 +0200)
Patch from George Danchev, thanks (Closes: #511557)

cmdline/apt-cache.cc
debian/changelog

index 0e95031..7d7f58a 100644 (file)
@@ -929,7 +929,11 @@ bool XVcg(CommandLine &CmdL)
                Shapes[ShapeMap[Pkg->ID]]);
       
    }
-   
+
+   delete[] Show;
+   delete[] Flags;
+   delete[] ShapeMap;
+
    printf("}\n");
    return true;
 }
index 408070b..e82057d 100644 (file)
@@ -8,9 +8,12 @@ apt (0.7.22.3) unstable; urgency=low
   * apt-pkg/contrib/strutl.cc:
     - enable thousand separator according to the current locale
       (by Luca Bruno, Closes: #223712)
+
+  [ George Danchev ]
+  * cmdline/apt-cache.cc:
+    - fix a memory leak in the xvcg method (Closes: #511557)
   * apt-pkg/indexcopy.cc:
-    - fix a (hypothetical) memory leak then the Release file not exists
-      (by George Danchev, Closes: #511556)
+    - fix a memory leak then the Release file not exists (Closes: #511556)
 
  -- David Kalnischkies <david@kalnischkies.com>  Sat, 08 Aug 2009 09:40:08 +0200