Commit 48061c32 authored by Sergei Golubchik's avatar Sergei Golubchik

fix for a valgrind builds.

my_alloca() cannot have MY_THREAD_SPECIFIC, because can be used
outside of the THD context.
parent deb0cd3f
...@@ -199,7 +199,7 @@ extern void my_large_free(uchar *ptr); ...@@ -199,7 +199,7 @@ extern void my_large_free(uchar *ptr);
#define my_alloca(SZ) alloca((size_t) (SZ)) #define my_alloca(SZ) alloca((size_t) (SZ))
#define my_afree(PTR) ((void)0) #define my_afree(PTR) ((void)0)
#else #else
#define my_alloca(SZ) my_malloc(SZ,MYF(MY_FAE|MY_THREAD_SPECIFIC)) #define my_alloca(SZ) my_malloc(SZ,MYF(MY_FAE))
#define my_afree(PTR) my_free(PTR) #define my_afree(PTR) my_free(PTR)
#endif /* HAVE_ALLOCA */ #endif /* HAVE_ALLOCA */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment