What is a memory leak on a Mac?
Last reviewed: 19 November 2026.
A memory leak is a bug in an app: it allocates memory and then loses track of it, so the memory is never given back while the app runs. The sign is an app whose figure in Activity Monitor's Memory column keeps growing over hours although you are not giving it more to do. Quitting and reopening the app returns the memory; an update from its developer fixes the cause.
How do you spot a memory leak in Activity Monitor?
- Note the app's memory. Open Activity Monitor, click the Memory tab and find the app. Write down its figure in the Memory column.
- Leave it doing the same thing. Keep using it normally, or leave it idle, for an hour or more. Do not open more documents or tabs in the meantime.
- Compare. If the figure has grown a lot while the workload stayed the same, and keeps growing, a leak is likely. Growth that stops at a level is usually a cache filling up, not a leak.
- Restart the app. Quit and reopen it. If the memory starts low and climbs the same way again, report it to the developer with the steps that cause it.
What does the leaks command show?
macOS includes a leaks tool for developers. Its manual defines leaked memory as memory the application has allocated but lost and cannot free: it searches the process's memory for pointers and reports blocks nothing points to any more.
leaks Safari
leaks 1234 # 1234 is an example PID
It works on your own processes, prints each leak it finds grouped into trees, and ends with a count and total size. The results are most useful to the app's developer. It only finds blocks with no remaining pointer, so memory an app holds on to but never uses again does not show up as a leak, even though it grows the same way in Activity Monitor.
Why do memory leaks slow a Mac down?
Leaked memory still counts as the app's memory. macOS cannot reclaim it, so as it grows it is compressed and eventually swapped to disk, raising memory pressure for every other app. The leaks manual notes leaks are particularly dangerous for long-running programs, because they can eventually fill memory and crash the app.
How can Thrum help?
Thrum's Memory tab shows memory pressure, swap, and the eight processes using the most memory. An optional alert tells you when memory pressure turns critical.
Thrum is $4.99 once with a 14-day free trial and no account. It requires macOS 26 Tahoe on Apple silicon or Intel.
Questions
Does restarting the Mac fix a memory leak?
It frees the memory, but so does quitting the leaking app. The leak returns when the app runs again, until its developer fixes it.
Can a macOS process leak memory?
Yes, system processes have bugs too. If one keeps growing across days, check for a macOS update; a restart clears it in the meantime.
Sources
- leaks(1) man page: run man leaks in Terminal
- Apple Developer: Gathering information about memory use