Closed FSMaxB closed 7 years ago
The various free_and_null macros should check if the pointer is NULL before attempting to free it. But then it should be renamed to free_and_null_if_valid or something.
free_and_null
free_and_null_if_valid
This would convert code like this:
if (pointer != NULL) { free_and_null(pointer); }
Into this:
free_and_null_if_valid(pointer);
Done in #86
The various
free_and_null
macros should check if the pointer is NULL before attempting to free it. But then it should be renamed tofree_and_null_if_valid
or something.This would convert code like this:
Into this: