public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [2.4] ufs memleak
@ 2003-03-09 17:34 Oleg Drokin
  0 siblings, 0 replies; only message in thread
From: Oleg Drokin @ 2003-03-09 17:34 UTC (permalink / raw)
  To: alan, linux-kernel; +Cc: daniel.pirkl

Hello!

   Seems there is ufs memleak in 2.4 code. See the patch attached.
   Found with help of smatch + enchanced unfree script.

Bye,
    Oleg
===== fs/ufs/util.c 1.5 vs edited =====
--- 1.5/fs/ufs/util.c	Tue Feb  5 17:10:25 2002
+++ edited/fs/ufs/util.c	Sun Mar  9 17:55:48 2003
@@ -47,6 +47,7 @@
 failed:
 	for (j = 0; j < i; j++)
 		brelse (ubh->bh[j]);
+	kfree(ubh);
 	return NULL;
 }
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-03-09 17:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-09 17:34 [2.4] ufs memleak Oleg Drokin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox