summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2009-08-08 12:40:00 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2009-08-08 12:40:00 +0200
commit034960416c99c4737f99536c55b77cc9a27b8d66 (patch)
tree3b505648919267d32b9d934c39646cb9671eb334
parentcfb3d242ded4b9d3e5f4f55a3139561fe78155db (diff)
[cmdline/apt-cache.cc] fix a memory leak in the xvcg method
Patch from George Danchev, thanks (Closes: #511557)
-rw-r--r--cmdline/apt-cache.cc6
-rw-r--r--debian/changelog7
2 files changed, 10 insertions, 3 deletions
diff --git a/cmdline/apt-cache.cc b/cmdline/apt-cache.cc
index 0e950310b..7d7f58a62 100644
--- a/cmdline/apt-cache.cc
+++ b/cmdline/apt-cache.cc
@@ -929,7 +929,11 @@ bool XVcg(CommandLine &CmdL)
Shapes[ShapeMap[Pkg->ID]]);
}
-
+
+ delete[] Show;
+ delete[] Flags;
+ delete[] ShapeMap;
+
printf("}\n");
return true;
}
diff --git a/debian/changelog b/debian/changelog
index 408070b69..e82057d8e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -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