diff options
author | Christian Sigg <chsigg@users.noreply.github.com> | 2019-01-07 11:34:55 +0300 |
---|---|---|
committer | Sylvain Jeaugey <sjeaugey@nvidia.com> | 2019-01-08 01:18:46 +0300 |
commit | 4861e197fd83f0ac324ac0c21051820f8866e6ea (patch) | |
tree | 017c6ea3c6df353c76cce8efe16c07cda1b25c2c | |
parent | c244b51ae7fc0de0cb7df20653f9ff3455106286 (diff) |
Fix memory leak in bootstrapRoot()
-rw-r--r-- | src/bootstrap.cu | 4 |
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; } |