Commit 791599f1 authored by marko's avatar marko

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.
parent 29a50ec5
...@@ -321,7 +321,7 @@ typedef void* os_thread_ret_t; ...@@ -321,7 +321,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