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:
marko 2007-09-07 12:41:42 +00:00
parent 02d91af9e7
commit 023cc0a24f

View file

@ -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)