Fix memory leak in bootstrapRoot()

[ROCm/rccl commit: 4861e197fd]
Этот коммит содержится в:
Christian Sigg
2019-01-07 09:34:55 +01:00
коммит произвёл Sylvain Jeaugey
родитель 4e32c7a19a
Коммит 3a7974d4c4
+2 -2
Просмотреть файл
@@ -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;
}