Skip to content

Commit a2dd146

Browse files
Randy DunlapLinus Torvalds
authored andcommitted
[PATCH] quota memleak
The Stanford Checker found a memleak.
1 parent d0d3f1f commit a2dd146

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/quota_v2.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,7 @@ static uint find_free_dqentry(struct dquot *dquot, int *err)
306306
blk = get_free_dqblk(filp, info);
307307
if ((int)blk < 0) {
308308
*err = blk;
309+
freedqbuf(buf);
309310
return 0;
310311
}
311312
memset(buf, 0, V2_DQBLKSIZE);

0 commit comments

Comments
 (0)