Re: Memory Leak in FreeAltScreen

"Eric Wald" <[email protected]> Mon, 1 May 2006 13:13:27 -0600
Newsgroups gmane.comp.gnu.screen
Message-ID <[email protected]>
Daniel De Graaf wrote:
>    if (p->w_alt_mlines)
>      for (i = 0; i < p->w_alt_height; i++)
>        FreeMline(p->w_alt_mlines + i);
> +  free(p->w_alt_mlines);
> [...]
>    if (p->w_alt_hlines)
>      for (i = 0; i < p->w_alt_histheight; i++)
>        FreeMline(p->w_alt_hlines + i);
> +  free(p->w_alt_hlines);

It seems to me that the FreeMline() calls make the free() calls redundant.
Am I wrong?

- Eric