Explorar el Código

Fix unregister/free order

Samuel Thibault hace 10 años
padre
commit
76bb7e5b51
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      tests/datawizard/allocate.c

+ 1 - 1
tests/datawizard/allocate.c

@@ -107,8 +107,8 @@ int test_prefetch(unsigned memnodes)
 
 	for(i=0 ; i<4 ; i++)
 	{
-		free(buffers[i]);
 		starpu_data_unregister(handles[i]);
+		free(buffers[i]);
 	}
 
 	for(i=1 ; i<memnodes ; i++)