Date: Wed, 8 Dec 1999 10:02:10 +0100 (CET) From: Oliver Fromme <olli@dorifer.heim3.tu-clausthal.de> To: freebsd-current@FreeBSD.ORG Subject: Memory leak in syscons? Message-ID: <199912080902.KAA14179@dorifer.heim3.tu-clausthal.de>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199912080902.KAA14179>