screen-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [screen-devel] Memory Leak in FreeAltScreen


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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]