author | Tomas Kuthan <tomas.kuthan@oracle.com> |
Tue, 20 Sep 2016 03:54:40 -0700 | |
changeset 6931 | f6f7269f85a9 |
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