Files
ladybird/Libraries/LibCore/System.cpp
Andreas Kling 07630f3b0c LibCore: Fix memory leak in anon_create() on BSD/macOS
The mmap() call here served no purpose - anon_create() is only meant to
create and return a file descriptor. The actual mapping is done later
by AnonymousBufferImpl::create().

This leaked an mmap of `size` bytes for every AnonymousBuffer created,
which includes backing stores, shareable bitmaps, and more.
2026-01-16 08:04:22 +01:00

25 KiB