screen.c (DeleteTopLine): Free the top line before when we allow it to
authorTheodore Tso <tytso@mit.edu>
Fri, 14 May 1999 21:25:45 +0000 (21:25 +0000)
committerTheodore Tso <tytso@mit.edu>
Fri, 14 May 1999 21:25:45 +0000 (21:25 +0000)
scroll out of the Scrollback buffer.  Bugfix suggested by Craig
Huckabee <huck@cs.wisc.edu>.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11442 dc483132-0cff-0310-8789-dd5450dbe970

src/windows/wintel/ChangeLog
src/windows/wintel/screen.c

index 6e7cc0671bdc6ba46b1685d6b068139354e35dbb..53a7736e93c4a969db77b60ea20274775be751b3 100644 (file)
@@ -1,3 +1,9 @@
+1999-04-17    <tytso@rsts-11.mit.edu>
+
+       * screen.c (DeleteTopLine): Free the top line before when we allow
+               it to scroll out of the Scrollback buffer.  Bugfix
+               suggested by Craig Huckabee <huck@cs.wisc.edu>.
+
 Mon May 10 15:28:51 1999  Danilo Almeida  <dalmeida@mit.edu>
 
        * Makefile.in: Do win32 build in subdir.
index 4d20d237d8de39a613a28e13ab418b675f14e677..52e9103c28883e5a0b90d4652834e3a69ebc1322 100644 (file)
@@ -243,6 +243,7 @@ void DeleteTopLine(
   pScr->buffer_top = pScr->buffer_top->next;
   assert(pScr->buffer_top != NULL);
 
+  free(pScr->buffer_top->prev);
   pScr->buffer_top->prev = NULL;
 
   pScr->numlines--;