Fix memory leak.

PR: kern/15363
Submitted by: Oliver Fromme
This commit is contained in:
yokota 1999-12-10 09:36:05 +00:00
parent 05e15d63ca
commit 457742651f

View File

@ -135,6 +135,7 @@ sc_alloc_history_buffer(scr_stat *scp, int lines, int prev_ysize, int wait)
if (prev_history != NULL) {
extra_history_size += delta;
sc_vtb_destroy(prev_history);
free(prev_history, M_DEVBUF);
}
scp->history = history;