The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [2.5] Memleak in fs/ufs/util.c
@ 2003-03-11 16:19 Oleg Drokin
  0 siblings, 0 replies; only message in thread
From: Oleg Drokin @ 2003-03-11 16:19 UTC (permalink / raw)
  To: torvalds, linux-kernel

Hello!

    There is trivial memleak on error exit path in
    fs/ufs/util.c::_ubh_bread_()
    See the patch attached.

Bye,
    Oleg

===== fs/ufs/util.c 1.9 vs edited =====
--- 1.9/fs/ufs/util.c	Thu May 23 17:19:01 2002
+++ edited/fs/ufs/util.c	Tue Mar 11 19:17:01 2003
@@ -48,6 +48,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-11 16:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-11 16:19 [2.5] Memleak in fs/ufs/util.c Oleg Drokin

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