Browse Source

fix memleak due to potential typo

Terry Cojean 8 years ago
parent
commit
4d6ba80361
1 changed files with 1 additions and 1 deletions
  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