Commit 8f98e909 authored by marko's avatar marko

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.
parent 6b4c37d6
...@@ -343,7 +343,7 @@ typedef void* os_thread_ret_t; ...@@ -343,7 +343,7 @@ typedef void* os_thread_ret_t;
# define UNIV_MEM_ASSERT_W(addr, size) do {} while(0) # define UNIV_MEM_ASSERT_W(addr, size) do {} while(0)
#endif #endif
#define UNIV_MEM_ASSERT_AND_FREE(addr, size) do { \ #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); \ UNIV_MEM_FREE(addr, size); \
} while (0) } while (0)
......
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