Browse Source

partition_clean: in children, clear siblings pointer after freeing it

Otherwise when calling starpu_data_unregister_submit on children they
would try to implicitly re-partition.
Samuel Thibault 4 years ago
parent
commit
f17b52ea29
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/datawizard/filters.c

+ 3 - 0
src/datawizard/filters.c

@@ -635,7 +635,10 @@ void starpu_data_partition_clean(starpu_data_handle_t root_handle, unsigned npar
 	free(children[0]->siblings);
 
 	for (i = 0; i < nparts; i++)
+	{
+		children[i]->siblings = NULL;
 		starpu_data_unregister_submit(children[i]);
+	}
 
 	_starpu_spin_lock(&root_handle->header_lock);
 	root_handle->nplans--;