Skip to content

How To Debug iOS Memoery Issues

Guard Malloc

Guard Malloc is a special version of the malloc library (libgmalloc) that replaces the standard library during debugging.

Guard Malloc try to crash your application at the specific point where a memory error occurs.

It places separate memory allocations on different virtual memory pages and then deletes the entire page when the memory is freed. Subsequent attempts to access the deallocated memory cause an immediate memory exception rather than a blind access into memory that might now hold other data.