Memory leak in syscons?

1999-12-08 Thread Oliver Fromme

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.cSun 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:[EMAIL PROTECTED])

"In jedem Stück Kohle wartet ein Diamant auf seine Geburt"
 (Terry Pratchett)


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Memory leak in syscons?

1999-12-08 Thread Oliver Fromme

(Replying to myself...)

In list.freebsd-current I wrote (8 Dec 1999 10:02:39 +0100):
  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?

-- kern/15363

Regards
   Oliver

PS:  I have more patches for syscons, they will follow
shortly...  :)

-- 
Oliver Fromme, Leibnizstr. 18/61, 38678 Clausthal, Germany
(Info: finger userinfo:[EMAIL PROTECTED])

"In jedem Stück Kohle wartet ein Diamant auf seine Geburt"
 (Terry Pratchett)


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message