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:
9f3eaed
)
Free buf alloced when program exit normally.
author
fanyong
<fanyong>
Tue, 8 Aug 2006 02:28:46 +0000
(
02:28
+0000)
committer
fanyong
<fanyong>
Tue, 8 Aug 2006 02:28:46 +0000
(
02:28
+0000)
lustre/utils/create_iam.c
patch
|
blob
|
history
diff --git
a/lustre/utils/create_iam.c
b/lustre/utils/create_iam.c
index
8683d3b
..
5268802
100644
(file)
--- a/
lustre/utils/create_iam.c
+++ b/
lustre/utils/create_iam.c
@@
-340,9
+340,9
@@
int main(int argc, char **argv)
lvar_leaf(buf, blocksize, keysize, ptrsize, recsize);
rc = write(1, buf, blocksize);
+ free(buf);
if (rc != blocksize) {
fprintf(stderr, "Unable to write leaf node: %m (%i)\n", rc);
- free(buf);
return 1;
}
if (verbose > 0)