From owner-freebsd-current Wed Dec 8 1: 2:13 1999 Delivered-To: freebsd-current@freebsd.org Received: from dorifer.heim3.tu-clausthal.de (dorifer.heim3.tu-clausthal.de [139.174.243.252]) by hub.freebsd.org (Postfix) with ESMTP id 362FE14D8A for ; Wed, 8 Dec 1999 01:02:10 -0800 (PST) (envelope-from olli@dorifer.heim3.tu-clausthal.de) Received: (from olli@localhost) by dorifer.heim3.tu-clausthal.de (8.8.8/8.8.8) id KAA14179 for freebsd-current@FreeBSD.ORG; Wed, 8 Dec 1999 10:02:10 +0100 (CET) (envelope-from olli) Date: Wed, 8 Dec 1999 10:02:10 +0100 (CET) From: Oliver Fromme Message-Id: <199912080902.KAA14179@dorifer.heim3.tu-clausthal.de> To: freebsd-current@FreeBSD.ORG Subject: Memory leak in syscons? Organization: Administration TU Clausthal Reply-To: freebsd-current@FreeBSD.ORG MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: TIN [version 1.2 RZTUC(3) PL2] Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I'm not 100% sure, but I think I have found a memory leak in syscons. The following patch should fix it. Would someone please have a look at this? The diff is against this file: src/sys/dev/syscons/schistory.c,v 1.5 1999/09/19 08:58:53 Regards Oliver --- 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; -- Oliver Fromme, Leibnizstr. 18/61, 38678 Clausthal, Germany (Info: finger userinfo:olli@dorifer.heim3.tu-clausthal.de) "In jedem Stück Kohle wartet ein Diamant auf seine Geburt" (Terry Pratchett) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message