1
1

Add missing OBJ_RELEASE to opal_reachable_allocate

Signed-off-by: Joseph Schuchart <schuchart@hlrs.de>
Этот коммит содержится в:
Joseph Schuchart 2020-06-19 12:37:57 +02:00
родитель ae3974d249
Коммит 602f833e57

Просмотреть файл

@ -44,7 +44,10 @@ opal_reachable_t * opal_reachable_allocate(unsigned int num_local,
malloc, rather than a bunch of little allocations */
memory = malloc(sizeof(int*) * num_local +
num_local * (sizeof(int) * num_remote));
if (memory == NULL) return NULL;
if (memory == NULL) {
OBJ_RELEASE(reachable);
return NULL;
}
reachable->memory = (void*)memory;
reachable->weights = (int**)reachable->memory;