Whamcloud - gitweb
git://git.whamcloud.com
/
tools
/
e2fsprogs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e46c187
)
libquota: fix memory leak (on error path)
author
Darrick J. Wong
<darrick.wong@oracle.com>
Thu, 12 Dec 2013 18:13:51 +0000
(13:13 -0500)
committer
Theodore Ts'o
<tytso@mit.edu>
Thu, 12 Dec 2013 18:13:59 +0000
(13:13 -0500)
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/quota/mkquota.c
patch
|
blob
|
history
diff --git
a/lib/quota/mkquota.c
b/lib/quota/mkquota.c
index
a0d3a2a
..
3aa8100
100644
(file)
--- a/
lib/quota/mkquota.c
+++ b/
lib/quota/mkquota.c
@@
-230,6
+230,7
@@
errcode_t quota_init_context(quota_ctx_t *qctx, ext2_filsys fs, int qtype)
err = ext2fs_get_mem(sizeof(dict_t), &dict);
if (err) {
log_err("Failed to allocate dictionary");
+ quota_release_context(&ctx);
return err;
}
ctx->quota_dict[i] = dict;