Tracing the memory leak to the exact piece or line of code can be time consuming and painful. Now there's something known as Malloc Stack Logging that helps the debugger find the exact lines of code causing the leak.