|
| From: | Eric Wald |
| Subject: | Re: [screen-devel] Memory Leak in FreeAltScreen |
| Date: | Mon, 1 May 2006 13:13:27 -0600 |
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
| [Prev in Thread] | Current Thread | [Next in Thread] |