Re: Bug#511557: memleak in apt-cache
On Mon, Jan 12, 2009 at 09:48:17AM +0200, George Danchev <danchev@spnet.net> was heard to say:
> 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;
> }
Shouldn't those be delete[]?
Daniel
Reply to: