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 2019/04/01 15:20:44 UTC

[GitHub] [incubator-mxnet] elfring opened a new issue #14580: Remove unnecessary null pointer checks

elfring opened a new issue #14580: Remove unnecessary null pointer checks
URL: https://github.com/apache/incubator-mxnet/issues/14580
 
 
   [An extra null pointer check is not needed in functions](https://isocpp.org/wiki/faq/freestore-mgmt#delete-handles-null "Do I need to check for null before delete p?") like the following.
   - [KVStoreDist::RunServer](https://github.com/apache/incubator-mxnet/blob/992c3c0dd90c0723de6934e826a49bad6569eeac/src/kvstore/kvstore_dist.h#L130 "KVStoreDist::RunServer function")
   - [MNISTIter](https://github.com/apache/incubator-mxnet/blob/992c3c0dd90c0723de6934e826a49bad6569eeac/src/io/iter_mnist.cc#L86 "Destructor for MNISTIter")
   - [Predictor](https://github.com/apache/incubator-mxnet/blob/f1c063ebc017d175bd8f6f4d5027f8e178388c58/cpp-package/example/inference/inception_inference.cpp#L333 "Destructor for Predictor")

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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