diff options
author | Dandelion Man? <dandelion@google.com> | 2017-12-15 18:15:07 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-12-15 18:19:09 -0800 |
commit | 90e42f3ac8c43474633136af4242dca04b6a1e09 (patch) | |
tree | 64dbb44252c89c847bee86db07cea5aa94072e7c /tensorflow/tools/proto_text | |
parent | 713d45278491d792c525344de6038a61ebcb2136 (diff) |
Automated g4 rollback of changelist 179260538
PiperOrigin-RevId: 179263865
Diffstat (limited to 'tensorflow/tools/proto_text')
-rw-r--r-- | tensorflow/tools/proto_text/gen_proto_text_functions.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tensorflow/tools/proto_text/gen_proto_text_functions.cc b/tensorflow/tools/proto_text/gen_proto_text_functions.cc index ecb29a65a0..f0bb59acf8 100644 --- a/tensorflow/tools/proto_text/gen_proto_text_functions.cc +++ b/tensorflow/tools/proto_text/gen_proto_text_functions.cc @@ -132,6 +132,7 @@ int MainImpl(int argc, char** argv) { FILE* f = fopen(path.c_str(), "w"); if (f == nullptr) return -1; if (fwrite(data.c_str(), 1, data.size(), f) != data.size()) { + fclose(f); return -1; } if (fclose(f) != 0) { |