You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2017/11/22 18:53:08 UTC

[GitHub] larroy commented on a change in pull request #8737: Use RAII and fix Coverity resource leaks #10371 and others

larroy commented on a change in pull request #8737: Use RAII and fix Coverity resource leaks #10371 and others
URL: https://github.com/apache/incubator-mxnet/pull/8737#discussion_r152651527
 
 

 ##########
 File path: cpp-package/example/alexnet.cpp
 ##########
 @@ -215,7 +215,7 @@ int main(int argc, char const *argv[]) {
   args_map["label"] = NDArray(Shape(batch_size), ctx);
 
   /*with data and label, executor can be generated automatically*/
-  auto *exec = Net.SimpleBind(ctx, args_map);
+  auto exec = Net.SimpleBind(ctx, args_map);
 
 Review comment:
   I can change it for sure to the proper type. Are we going to merge this PR though? I really dislike returning unmaged pointers and would like to see this merged, even if it breaks the interface very slightly.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services