Browse Source

free interfaces before freeing per_node pointers which hold the interface pointer

Samuel Thibault 15 years ago
parent
commit
1142890098
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/datawizard/interfaces/data_interface.c

+ 2 - 2
src/datawizard/interfaces/data_interface.c

@@ -224,6 +224,8 @@ void starpu_data_unregister(starpu_data_handle handle)
 		}
 	}
 
+	_starpu_data_free_interfaces(handle);
+
 	/* Destroy the data now */
 	unsigned node;
 	for (node = 0; node < STARPU_MAXNODES; node++)
@@ -241,8 +243,6 @@ void starpu_data_unregister(starpu_data_handle handle)
 
 	starpu_data_requester_list_delete(handle->req_list);
 
-	_starpu_data_free_interfaces(handle);
-
 	free(handle);
 }