lkml.org 
[lkml]   [2003]   [Feb]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] quota memleak (fwd)
  Hi Linus,

please apply the following bugfix (fixes memleak on error condition).

Thanks
Honza

----- Forwarded message from "Randy.Dunlap" <randy.dunlap@verizon.net> -----

Date: Wed, 05 Feb 2003 12:14:56 -0800
From: "Randy.Dunlap" <randy.dunlap@verizon.net>
To: jack@suse.cz
Subject: [PATCH] quota memleak
X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.5.54 i686)

Hi,

The Stanford Checker found a memleak.
Please consider applying. For 2.5.59.

Thanks,
~Randy

----------------------------------------------------------------------
diff -Naur ./fs/quota_v2.c%LEAK ./fs/quota_v2.c
--- ./fs/quota_v2.c%LEAK Thu Jan 16 18:22:29 2003
+++ ./fs/quota_v2.c Tue Feb 4 21:37:07 2003
@@ -306,6 +306,7 @@
blk = get_free_dqblk(filp, info);
if ((int)blk < 0) {
*err = blk;
+ freedqbuf(buf);
return 0;
}
memset(buf, 0, V2_DQBLKSIZE);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:32    [W:0.048 / U:0.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site