소스 검색

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

Nathalie Furmento 6 년 전
부모
커밋
41df1a8163
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;
 }