Commit a2dd1464 authored by Randy Dunlap's avatar Randy Dunlap Committed by Linus Torvalds

[PATCH] quota memleak

The Stanford Checker found a memleak.
parent d0d3f1f0
...@@ -306,6 +306,7 @@ static uint find_free_dqentry(struct dquot *dquot, int *err) ...@@ -306,6 +306,7 @@ static uint find_free_dqentry(struct dquot *dquot, int *err)
blk = get_free_dqblk(filp, info); blk = get_free_dqblk(filp, info);
if ((int)blk < 0) { if ((int)blk < 0) {
*err = blk; *err = blk;
freedqbuf(buf);
return 0; return 0;
} }
memset(buf, 0, V2_DQBLKSIZE); memset(buf, 0, V2_DQBLKSIZE);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment