mirror of
https://github.com/MariaDB/server.git
synced 2025-02-01 03:21:53 +01:00
branches/zip: Merge 1894:1918 from trunk.
This commit is contained in:
parent
202405cc1c
commit
14b700688b
2 changed files with 5 additions and 0 deletions
|
@ -895,6 +895,7 @@ rec_offs_set_n_alloc(
|
|||
{
|
||||
ut_ad(offsets);
|
||||
ut_ad(n_alloc > 0);
|
||||
UNIV_MEM_ASSERT_AND_ALLOC(offsets, n_alloc * sizeof *offsets);
|
||||
offsets[0] = n_alloc;
|
||||
}
|
||||
|
||||
|
|
|
@ -358,5 +358,9 @@ typedef void* os_thread_ret_t;
|
|||
UNIV_MEM_ASSERT_W(addr, size); \
|
||||
UNIV_MEM_FREE(addr, size); \
|
||||
} while (0)
|
||||
#define UNIV_MEM_ASSERT_AND_ALLOC(addr, size) do { \
|
||||
UNIV_MEM_ASSERT_W(addr, size); \
|
||||
UNIV_MEM_ALLOC(addr, size); \
|
||||
} while (0)
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue