diff --git a/pkgs/ffi/lib/src/allocation.dart b/pkgs/ffi/lib/src/allocation.dart index 42021458a..5611b647d 100644 --- a/pkgs/ffi/lib/src/allocation.dart +++ b/pkgs/ffi/lib/src/allocation.dart @@ -40,11 +40,11 @@ final WinCoTaskMemFree winCoTaskMemFree = winCoTaskMemFreePointer.asFunction(); /// Manages memory on the native heap. /// -/// Does not initialize newly allocated memory to zero. Use [_CallocAllocator] +/// Does not initialize newly allocated memory to zero. Use [CallocAllocator] /// for zero-initialized memory on allocation. /// /// For POSIX-based systems, this uses `malloc` and `free`. On Windows, it uses -/// `CoTaskMemAlloc`. +/// `CoTaskMemAlloc` and `CoTaskMemFree`. final class MallocAllocator implements Allocator { const MallocAllocator._();