summaryrefslogtreecommitdiffstats
path: root/sys/dev/syscons/schistory.c
diff options
context:
space:
mode:
authoryokota <yokota@FreeBSD.org>1999-12-10 09:36:05 +0000
committeryokota <yokota@FreeBSD.org>1999-12-10 09:36:05 +0000
commit5aa876a119748db16a0d7e9093395ddb0348860f (patch)
treeede12fa7cee89a536af670d6812c96bd85ecb39a /sys/dev/syscons/schistory.c
parent80e1fa6d2b3103c945cfa35609e82a85af2c4d16 (diff)
downloadFreeBSD-src-5aa876a119748db16a0d7e9093395ddb0348860f.zip
FreeBSD-src-5aa876a119748db16a0d7e9093395ddb0348860f.tar.gz
Fix memory leak.
PR: kern/15363 Submitted by: Oliver Fromme
Diffstat (limited to 'sys/dev/syscons/schistory.c')
-rw-r--r--sys/dev/syscons/schistory.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/syscons/schistory.c b/sys/dev/syscons/schistory.c
index 054345a..aa7de06 100644
--- a/sys/dev/syscons/schistory.c
+++ b/sys/dev/syscons/schistory.c
@@ -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;
OpenPOWER on IntegriCloud