mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 05:22:25 +01:00
Merge r1826 from branches/zip: UNIV_MEM_ASSERT_AND_FREE():
Use UNIV_MEM_ASSERT_W() instead of UNIV_MEM_ASSERT_RW(). The memory area need not be initialized. This mistake was made in r1815.
This commit is contained in:
parent
02d91af9e7
commit
023cc0a24f
1 changed files with 1 additions and 1 deletions
|
@ -321,7 +321,7 @@ typedef void* os_thread_ret_t;
|
|||
# define UNIV_MEM_ASSERT_W(addr, size) do {} while(0)
|
||||
#endif
|
||||
#define UNIV_MEM_ASSERT_AND_FREE(addr, size) do { \
|
||||
UNIV_MEM_ASSERT_RW(addr, size); \
|
||||
UNIV_MEM_ASSERT_W(addr, size); \
|
||||
UNIV_MEM_FREE(addr, size); \
|
||||
} while (0)
|
||||
|
||||
|
|
Loading…
Reference in a new issue