mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge remote-tracking branch 'origin/bb-10.2-ext' into 10.3
This commit is contained in:
@@ -212,6 +212,13 @@ void my_free(void *ptr)
|
||||
my_bool old_flags;
|
||||
old_size= MALLOC_SIZE_AND_FLAG(ptr, &old_flags);
|
||||
update_malloc_size(- (longlong) old_size - MALLOC_PREFIX_SIZE, old_flags);
|
||||
#ifndef SAFEMALLOC
|
||||
/*
|
||||
Trash memory if not safemalloc. We don't have to do this if safemalloc
|
||||
is used as safemalloc will also do trashing
|
||||
*/
|
||||
TRASH_FREE(ptr, old_size);
|
||||
#endif
|
||||
sf_free(MALLOC_FIX_POINTER_FOR_FREE(ptr));
|
||||
}
|
||||
DBUG_VOID_RETURN;
|
||||
|
Reference in New Issue
Block a user