From: Michael Stapelberg Date: Sun, 21 Jun 2009 11:44:14 +0000 (+0200) Subject: Bugfix: yuck! FREE() used a wrong check, effectively never free()ing memory X-Git-Tag: 3.b~33 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=626e6b2b6f9c37e2daa96ba4542293810399e5cf;p=i3%2Fi3 Bugfix: yuck! FREE() used a wrong check, effectively never free()ing memory --- 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; \ } \