1 # Setting the freed pointer to NULL after free'ing
2 # prevents it from being double-free'd.
3 # Solaris-specific patch.
4 --- lib/glob/xmbsrtowcs.c 2010-05-30 15:36:27.000000000 -0700
5 +++ lib/glob/xmbsrtowcs.c 2011-11-29 09:34:23.471481937 -0800
10 -# define FREE(x) do { if (x) free (x); } while (0)
11 +# define FREE(x) do { if (x) free (x); x = 0; } while (0)