Browse Source

tests/datawizard/acquire_cb_insert.c: shutdown starpu at the end. Accessing the variable allocated by StarPU might fail otherwise

Nathalie Furmento 14 years ago
parent
commit
3bb1a391f2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/datawizard/acquire_cb_insert.c

+ 1 - 1
tests/datawizard/acquire_cb_insert.c

@@ -90,7 +90,6 @@ int main(int argc, char **argv)
 	starpu_data_unpartition(f_handle, 0);
 	starpu_data_unregister(f_handle);
 	starpu_data_unregister(x_handle);
-	starpu_shutdown();
 
         FPRINTF(stderr, "VALUES: %d", x);
 
@@ -105,5 +104,6 @@ int main(int argc, char **argv)
 
 	FPRINTF(stderr, "\n");
 
+	starpu_shutdown();
 	return 0;
 }