When over freeing a pointer you may see an error such as
\"pointer being freed was not allocated\"
When debugging with the simulator, I add a build argument
You need to set the MallocStackLogging env variables on the target executable...
To access these settings, select your executable from the Groups & Files pane in XCode, then Get Info.
Go to the Arguments tab and add the following entries into the “Variables to be set in the environment” box: