-
Notifications
You must be signed in to change notification settings - Fork 8
Description
** What **
Currently the address sanitizer on mac doesn't detect memory leaks. However, for XCode users, there is a simple and easy way to turn on memory leak detection.
** Where **
This would be best for the leak checking tutorial https://eecs280staff.github.io/tutorials/setup_leakcheck.html
** Why **
I was having trouble detecting a memory leak in project 4 and the tutorial didn't help me because I use XCode on a mac. As such, I did some research to find out if there was a built in implementation and it turns out it is a very simple fix.
** References **
Link to the website that I used to figure out how to turn on the memory leak checker:
Go to Product->Scheme->Edit Scheme->Diagnostics, then turn on malloc scribble and malloc stack(as shown in image)
