Removed clear tracking since it causes compile issues
Set freed status before calling free()

This way we don't have to store the value on stack.