Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/nccl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Sigg <chsigg@users.noreply.github.com>2019-01-07 11:34:55 +0300
committerSylvain Jeaugey <sjeaugey@nvidia.com>2019-01-08 01:18:46 +0300
commit4861e197fd83f0ac324ac0c21051820f8866e6ea (patch)
tree017c6ea3c6df353c76cce8efe16c07cda1b25c2c
parentc244b51ae7fc0de0cb7df20653f9ff3455106286 (diff)
Fix memory leak in bootstrapRoot()
-rw-r--r--src/bootstrap.cu4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bootstrap.cu b/src/bootstrap.cu
index 17aa1f4..13c6e92 100644
--- a/src/bootstrap.cu
+++ b/src/bootstrap.cu
@@ -72,7 +72,6 @@ static void *bootstrapRoot(void* commId) {
ncclNetHandle_t *extHandleRing = NULL; // for bootstrap ring creation
ncclNetHandle_t zero = { 0 }; // for sanity checking
void* tmpComm;
- char* data = NULL;
ncclResult_t res;
setFilesLimit();
@@ -123,7 +122,8 @@ static void *bootstrapRoot(void* commId) {
out:
bootstrapCloseListen(id->extListenComm);
free(commId);
- if (data) free(data);
+ free(extHandleBstrap);
+ free(extHandleRing);
return NULL;
}