Fix memory leak.
PR: kern/15363 Submitted by: Oliver Fromme
This commit is contained in:
parent
0712c356a3
commit
da7c907d09
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user