Commit 618c82d
committed
io: free Windows operation data with _aligned_free()
`_dispatch_operation_perform()` uses `_aligned_malloc()` on Windows to
allocate the data buffer. This means that we cannot use
`DISPATCH_DATA_DESTRUCTOR_FREE` when we create the `dispatch_data_t`.
Provide a custom destructor which correctly frees the buffer.
Discovered while porting the dispatch_io test to Windows.1 parent 7721660 commit 618c82d
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2483 | 2483 | | |
2484 | 2484 | | |
2485 | 2485 | | |
| 2486 | + | |
| 2487 | + | |
| 2488 | + | |
| 2489 | + | |
| 2490 | + | |
2486 | 2491 | | |
2487 | 2492 | | |
| 2493 | + | |
2488 | 2494 | | |
2489 | 2495 | | |
2490 | 2496 | | |
| |||
0 commit comments