]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] quota memleak
authorRandy Dunlap <randy.dunlap@verizon.net>
Thu, 6 Feb 2003 01:18:16 +0000 (17:18 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Thu, 6 Feb 2003 01:18:16 +0000 (17:18 -0800)
The Stanford Checker found a memleak.

fs/quota_v2.c

index 64811521d0ce7a704b66c0efea87c26a2a28c7d1..c051de09c559d6eb37b61787509d0061004e03c7 100644 (file)
@@ -306,6 +306,7 @@ static uint find_free_dqentry(struct dquot *dquot, int *err)
                blk = get_free_dqblk(filp, info);
                if ((int)blk < 0) {
                        *err = blk;
+                       freedqbuf(buf);
                        return 0;
                }
                memset(buf, 0, V2_DQBLKSIZE);