commit | 16dbf336e9781dfb68e3ce3b707f55868c36a879 | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Mon Oct 15 19:14:40 2018 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Mon Oct 15 19:14:40 2018 +0000 |
tree | 94e00842fb286e65b984dc715837f1038109f647 | |
parent | 57aac74d3e9ee2844dc2123e6b5b50ef435dacc7 [diff] | |
parent | c792c0f30dd0f67fc16fd0c0901eb719bf9b7d9b [diff] |
Merge "[hprof-conv] Check for NULL before closing descriptors"
diff --git a/tools/hprof-conv/HprofConv.c b/tools/hprof-conv/HprofConv.c index a69440c..cc90176 100644 --- a/tools/hprof-conv/HprofConv.c +++ b/tools/hprof-conv/HprofConv.c
@@ -764,9 +764,9 @@ res = 2; finish: - if (in != stdin) + if (in != stdin && in != NULL) fclose(in); - if (out != stdout) + if (out != stdout && out != NULL) fclose(out); return res; }