From: Theodore Tso Date: Fri, 14 May 1999 21:25:45 +0000 (+0000) Subject: screen.c (DeleteTopLine): Free the top line before when we allow it to X-Git-Tag: krb5-1.1-beta1~162 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4e6c42ea7b26ee8c7385380d8bc7973d6f8792f7;p=krb5.git screen.c (DeleteTopLine): Free the top line before when we allow it to scroll out of the Scrollback buffer. Bugfix suggested by Craig Huckabee . git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11442 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/windows/wintel/ChangeLog b/src/windows/wintel/ChangeLog index 6e7cc0671..53a7736e9 100644 --- a/src/windows/wintel/ChangeLog +++ b/src/windows/wintel/ChangeLog @@ -1,3 +1,9 @@ +1999-04-17 + + * screen.c (DeleteTopLine): Free the top line before when we allow + it to scroll out of the Scrollback buffer. Bugfix + suggested by Craig Huckabee . + Mon May 10 15:28:51 1999 Danilo Almeida * Makefile.in: Do win32 build in subdir. diff --git a/src/windows/wintel/screen.c b/src/windows/wintel/screen.c index 4d20d237d..52e9103c2 100644 --- a/src/windows/wintel/screen.c +++ b/src/windows/wintel/screen.c @@ -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--;