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-4629 utils: fix rsources leak
[fs/lustre-release.git]
/
lustre
/
utils
/
obdbarrier.c
diff --git
a/lustre/utils/obdbarrier.c
b/lustre/utils/obdbarrier.c
index
481c104
..
9f0af2e
100644
(file)
--- a/
lustre/utils/obdbarrier.c
+++ b/
lustre/utils/obdbarrier.c
@@
-210,8
+210,10
@@
main (int argc, char **argv)
return (1);
b = obdio_new_barrier (oid, bid, npeers);
- if (b == NULL)
- return (1);
+ if (b == NULL) {
+ rc = 1;
+ goto out;
+ }
rc = 0;
if (setup) {
@@
-230,7
+232,7
@@
main (int argc, char **argv)
}
free(b);
-
+out:
obdio_disconnect(conn, 0);
return (rc == 0 ? 0 : 1);