1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-23865 Create malloc function attribute

This commit is contained in:
Yasuhiro-gh
2023-04-27 20:37:18 +10:00
committed by Daniel Black
parent cee9b3b850
commit 26b96094ec
2 changed files with 6 additions and 0 deletions

View File

@@ -62,6 +62,7 @@ void set_malloc_size_cb(MALLOC_SIZE_CB func)
@return A pointer to the allocated memory block, or NULL on failure.
*/
ATTRIBUTE_MALLOC
void *my_malloc(PSI_memory_key key, size_t size, myf my_flags)
{
my_memory_header *mh;