Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-1884 build: fix 'resource leak' errors
[fs/lustre-release.git]
/
lustre
/
lmv
/
lmv_intent.c
diff --git
a/lustre/lmv/lmv_intent.c
b/lustre/lmv/lmv_intent.c
index
6bb2fb8
..
d3caecb
100644
(file)
--- a/
lustre/lmv/lmv_intent.c
+++ b/
lustre/lmv/lmv_intent.c
@@
-577,8
+577,10
@@
int lmv_revalidate_slaves(struct obd_export *exp, struct ptlrpc_request **reqp,
* cached all the time.
*/
obj = lmv_object_find_lock(obd, mid);
- if (obj == NULL)
- RETURN(-EALREADY);
+ if (obj == NULL) {
+ OBD_FREE_PTR(op_data);
+ RETURN(-EALREADY);
+ }
for (i = 0; i < obj->lo_objcount; i++) {
fid = obj->lo_stripes[i].ls_fid;