Date: Wed, 8 Dec 1999 23:06:22 +0100 (CET) From: oliver.fromme@heim3.tu-clausthal.de To: FreeBSD-gnats-submit@freebsd.org Subject: kern/15363: Memory leak in syscons (fix included) Message-ID: <199912082206.XAA00447@baryt.rz.tu-clausthal.de>
next in thread | raw e-mail | index | archive | help
>Number: 15363 >Category: kern >Synopsis: Memory leak in syscons (fix included) >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Dec 8 14:10:01 PST 1999 >Closed-Date: >Last-Modified: >Originator: Oliver Fromme >Release: FreeBSD 4.0-19991204-CURRENT i386 >Organization: Clausthal University of Technology >Environment: 4.0-current >Description: There's a memory leak in the history buffer management of syscons (in 4.0-current). For example, each time the screen mode of a virtual terminal is changed, the memory of its old history buffer stays around. >How-To-Repeat: >Fix: This patch is against this file: src/sys/dev/syscons/schistory.c,v 1.5 1999/09/19 08:58:53 --- src/sys/dev/syscons.orig/schistory.c Sun Sep 19 10:58:53 1999 +++ src/sys/dev/syscons/schistory.c Wed Dec 8 09:53:33 1999 @@ -135,6 +135,7 @@ if (prev_history != NULL) { extra_history_size += delta; sc_vtb_destroy(prev_history); + free(prev_history, M_DEVBUF); } scp->history = history; >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199912082206.XAA00447>