Browse Source

examples/interface/complex_interface.c: change unpack freeing function to be consistent with the pack operation

Nathalie Furmento 6 years ago
parent
commit
41df1a8163
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/interface/complex_interface.c

+ 1 - 1
examples/interface/complex_interface.c

@@ -161,7 +161,7 @@ static int complex_unpack_data(starpu_data_handle_t handle, unsigned node, void
 	memcpy(complex_interface->real, data, complex_interface->nx*sizeof(double));
 	memcpy(complex_interface->imaginary, data+complex_interface->nx*sizeof(double), complex_interface->nx*sizeof(double));
 
-	free(ptr);
+	starpu_free_flags(ptr, count, 0);
 
 	return 0;
 }