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 2018/11/23 20:02:51 UTC
[GitHub] KellenSunderland commented on a change in pull request #13376: Fix
incorrect delete in MXExecutorReshape exception handling
KellenSunderland commented on a change in pull request #13376: Fix incorrect delete in MXExecutorReshape exception handling
URL: https://github.com/apache/incubator-mxnet/pull/13376#discussion_r236013420
##########
File path: src/c_api/c_api_executor.cc
##########
@@ -560,6 +560,7 @@ int MXExecutorReshape(int partial_shaping,
ExecutorHandle *out) {
MXAPIThreadLocalEntry *ret = MXAPIThreadLocalStore::Get();
API_BEGIN();
+ *out = nullptr; // ensure we can know whether to free executor on early abort
Review comment:
Small linting issue:
src/c_api/c_api_executor.cc:563: At least two spaces is best between code and comments [whitespace/comments] [2]
Category 'whitespace' errors found: 1
----------------------------------------------------------------
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