aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/docs_src
diff options
context:
space:
mode:
authorGravatar Piotr Padlewski <prazek@google.com>2018-08-09 16:24:38 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-08-09 16:29:06 -0700
commitc38bf1ca5051b15356fe4219f36f7f44829fb2ae (patch)
tree67184c8c1f7cf0e2098371f658f830d8ad1410f9 /tensorflow/docs_src
parentb306f5f9458feddbdb89b7db557cb74dc9408d07 (diff)
Fix emplace_back(new) calls
Doing v.emplace_back(new Type) on a std::vector<std::unique_ptr<Type>> is not exception safe. This is because it cause a leak of passed pointer if emplace_back would throw exception before emplacement (e.g. not enough memory to add a new element). PiperOrigin-RevId: 208130121
Diffstat (limited to 'tensorflow/docs_src')
0 files changed, 0 insertions, 0 deletions