Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make FREE() clear pointer after memory released
Since a pointer to allocated memory mustn't be used after the memory is freed, it is safer to clear the pointer. It also means that if the pointer is subsequently used, it shoud segfault immediately rather than potentially trampling over random memory, which might be very difficult to debug. Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
- Loading branch information