diff options
author | A. Unique TensorFlower <nobody@tensorflow.org> | 2016-01-12 16:54:47 -0800 |
---|---|---|
committer | Vijay Vasudevan <vrv@google.com> | 2016-01-12 16:54:47 -0800 |
commit | 38d30b6c59fa6110d1136a72f309b28325d1c4d3 (patch) | |
tree | 444002dd88297fb4d9c933e5c57bb7af7db6eb6c /tensorflow/core/public/status.h | |
parent | 2b3395a7a997f229e19b8b3fb75bd9d1430ca2fb (diff) |
Move trivial Status destructor to be inline. Having it out of line
sometimes prevents other routines from being leaf routines from the
optimizer's perspective (and code size is nearly the same either way).
Change: 111998733
Diffstat (limited to 'tensorflow/core/public/status.h')
-rw-r--r-- | tensorflow/core/public/status.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/core/public/status.h b/tensorflow/core/public/status.h index 7d6bee6de7..48b7c245b8 100644 --- a/tensorflow/core/public/status.h +++ b/tensorflow/core/public/status.h @@ -29,7 +29,7 @@ class Status { public: /// Create a success status. Status() : state_(NULL) {} - ~Status(); + ~Status() { delete state_; } /// \brief Create a status with the specified error code and msg as a /// human-readable string containing more detailed information. |