|
@@ -535,7 +535,7 @@ static int copy_data_1_to_1_generic(starpu_data_handle_t handle,
|
|
ret = _starpu_disk_full_write(src_node, dst_node, obj, ptr, size, req && !starpu_asynchronous_copy_disabled() ? &req->async_channel : NULL);
|
|
ret = _starpu_disk_full_write(src_node, dst_node, obj, ptr, size, req && !starpu_asynchronous_copy_disabled() ? &req->async_channel : NULL);
|
|
if (ret == 0)
|
|
if (ret == 0)
|
|
/* write is already finished, ptr was allocated in pack_data */
|
|
/* write is already finished, ptr was allocated in pack_data */
|
|
- free(ptr);
|
|
|
|
|
|
+ starpu_free_flags(ptr, size, 0);
|
|
|
|
|
|
/* For now, asynchronous is not supported */
|
|
/* For now, asynchronous is not supported */
|
|
STARPU_ASSERT(ret == 0);
|
|
STARPU_ASSERT(ret == 0);
|
|
@@ -556,7 +556,7 @@ static int copy_data_1_to_1_generic(starpu_data_handle_t handle,
|
|
/* read is already finished, we can already unpack */
|
|
/* read is already finished, we can already unpack */
|
|
handle->ops->unpack_data(handle, dst_node, ptr, size);
|
|
handle->ops->unpack_data(handle, dst_node, ptr, size);
|
|
/* ptr is allocated in full_read */
|
|
/* ptr is allocated in full_read */
|
|
- free(ptr);
|
|
|
|
|
|
+ starpu_free_flags(ptr, size, 0);
|
|
}
|
|
}
|
|
|
|
|
|
/* For now, asynchronous is not supported */
|
|
/* For now, asynchronous is not supported */
|