Explorar o código

fix memleak due to potential typo

Terry Cojean %!s(int64=8) %!d(string=hai) anos
pai
achega
4d6ba80361
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/core/topology.c

+ 1 - 1
src/core/topology.c

@@ -501,7 +501,7 @@ _starpu_deallocate_topology_userdata(hwloc_obj_t obj)
 	STARPU_ASSERT(!data->worker_list || data->worker_list == (void*)-1);
 	free(data);
 	for (i = 0; i < obj->arity; i++)
-		_starpu_allocate_topology_userdata(obj->children[i]);
+		_starpu_deallocate_topology_userdata(obj->children[i]);
 }
 #endif
 #endif