Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15a8b7e
)
fixes possible memory leak on error case path
author
yury
<yury>
Fri, 13 May 2005 10:09:47 +0000
(10:09 +0000)
committer
yury
<yury>
Fri, 13 May 2005 10:09:47 +0000
(10:09 +0000)
lustre/llite/llite_lib.c
patch
|
blob
|
history
diff --git
a/lustre/llite/llite_lib.c
b/lustre/llite/llite_lib.c
index
deb06cf
..
fcf0c64
100644
(file)
--- a/
lustre/llite/llite_lib.c
+++ b/
lustre/llite/llite_lib.c
@@
-289,6
+289,11
@@
int lustre_common_fill_super(struct super_block *sb, char *lmv, char *lov,
ptlrpc_req_finished(request);
if (root == NULL || is_bad_inode(root)) {
+ if (md.lsm != NULL)
+ obd_free_memmd(sbi->ll_dt_exp, &md.lsm);
+ if (md.mea != NULL)
+ obd_free_memmd(sbi->ll_md_exp,
+ (struct lov_stripe_md**)&md.mea);
CERROR("lustre_lite: bad iget4 for root\n");
GOTO(out_root, err = -EBADF);
}