In at least aux.c and grid.c there are in several places free(ptr) calls inside if (ptr!=NULL) guards. This isn't needed, because according to C standard free(ptr) is safe even if ptr is a null pointer.
Ifs don't do any harm either, so it's a question of what style one likes.
In at least aux.c and grid.c there are in several places free(ptr) calls inside if (ptr!=NULL) guards. This isn't needed, because according to C standard free(ptr) is safe even if ptr is a null pointer.
Ifs don't do any harm either, so it's a question of what style one likes.