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-6542 lnet: handle cYAML out of memory error
[fs/lustre-release.git]
/
lnet
/
utils
/
cyaml
/
cyaml.c
diff --git
a/lnet/utils/cyaml/cyaml.c
b/lnet/utils/cyaml/cyaml.c
index
31283d8
..
6a12f8f
100644
(file)
--- a/
lnet/utils/cyaml/cyaml.c
+++ b/
lnet/utils/cyaml/cyaml.c
@@
-1088,8
+1088,10
@@
void cYAML_build_error(int rc, int seq_no, char *cmd,
return;
failed:
+ /* Only reason we get here is if we run out of memory */
cYAML_free_tree(r);
r = NULL;
+ fprintf(stderr, "error:\n\tfatal: out of memory\n");
}
struct cYAML *cYAML_build_tree(char *yaml_file,