Explorar el Código

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

Nathalie Furmento hace 6 años
padre
commit
41df1a8163
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;
 }