summaryrefslogtreecommitdiff
path: root/cmdline
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 /cmdline
parentcfb3d242ded4b9d3e5f4f55a3139561fe78155db (diff)
[cmdline/apt-cache.cc] fix a memory leak in the xvcg method
Patch from George Danchev, thanks (Closes: #511557)
Diffstat (limited to 'cmdline')
-rw-r--r--cmdline/apt-cache.cc6
1 files changed, 5 insertions, 1 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;
}