From 626e6b2b6f9c37e2daa96ba4542293810399e5cf Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sun, 21 Jun 2009 13:44:14 +0200 Subject: [PATCH] Bugfix: yuck! FREE() used a wrong check, effectively never free()ing memory --- include/util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/util.h b/include/util.h index 437411b6..c7209061 100644 --- a/include/util.h +++ b/include/util.h @@ -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; \ } \ -- 2.39.5