author | John Beck <John.Beck@Oracle.COM> |
Thu, 08 Sep 2016 09:45:54 -0700 | |
changeset 6864 | 45128c94429d |
parent 5518 | c47fe0edc204 |
child 7485 | 89b2d849f322 |
permissions | -rw-r--r-- |
# Setting the freed pointer to NULL after free'ing # prevents it from being double-free'd. # Solaris-specific patch. --- lib/glob/xmbsrtowcs.c 2010-05-30 15:36:27.000000000 -0700 +++ lib/glob/xmbsrtowcs.c 2011-11-29 09:34:23.471481937 -0800 @@ -36,7 +36,7 @@ #if HANDLE_MULTIBYTE #ifndef FREE -# define FREE(x) do { if (x) free (x); } while (0) +# define FREE(x) do { if (x) free (x); x = 0; } while (0) #endif #if ! HAVE_STRCHRNUL