Bug#511557: memleak in apt-cache
Package: apt
Version: 0.7.20
Tags: patch
This fixes a small memory leak
diff -Naur apt-0.7.20.orig/cmdline/apt-cache.cc
apt-0.7.20/cmdline/apt-cache.cc
--- apt-0.7.20.orig/cmdline/apt-cache.cc 2009-01-12 09:30:46.000000000
+0200
+++ apt-0.7.20/cmdline/apt-cache.cc 2009-01-12 09:34:03.000000000 +0200
@@ -929,6 +929,10 @@
}
+ delete Show;
+ delete Flags;
+ delete ShapeMap;
+
printf("}\n");
return true;
}
--
pub 4096R/0E4BD0AB 2003-03-18 <people.fccf.net/danchev/key pgp.mit.edu>
diff -Naur apt-0.7.20.orig/cmdline/apt-cache.cc apt-0.7.20/cmdline/apt-cache.cc
--- apt-0.7.20.orig/cmdline/apt-cache.cc 2009-01-12 09:30:46.000000000 +0200
+++ apt-0.7.20/cmdline/apt-cache.cc 2009-01-12 09:34:03.000000000 +0200
@@ -929,6 +929,10 @@
}
+ delete Show;
+ delete Flags;
+ delete ShapeMap;
+
printf("}\n");
return true;
}
Reply to: