Bugfix: yuck! FREE() used a wrong check, effectively never free()ing memory
This commit is contained in:
parent
8140619d5b
commit
626e6b2b6f
|
@ -25,7 +25,7 @@
|
|||
for (int cols = 0; cols < (workspace)->cols; cols++) \
|
||||
for (int rows = 0; rows < (workspace)->rows; rows++)
|
||||
#define FREE(pointer) do { \
|
||||
if (pointer == NULL) { \
|
||||
if (pointer != NULL) { \
|
||||
free(pointer); \
|
||||
pointer = NULL; \
|
||||
} \
|
||||
|
|
Loading…
Reference in New Issue