Skip to content

Commit

Permalink
MDEV-28836 fix crashing PFS unit tests on Windows.
Browse files Browse the repository at this point in the history
In stub_pfs_global, use aligned_free() for pfs_free(), to match
aligned_malloc() in pfs_malloc()
  • Loading branch information
vaintroub committed Nov 8, 2023
1 parent b52b7b4 commit 04477bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/perfschema/unittest/stub_pfs_global.h
Expand Up @@ -58,7 +58,7 @@ void *pfs_malloc(PFS_builtin_memory_class *klass, size_t size, myf)
void pfs_free(PFS_builtin_memory_class *, size_t, void *ptr)
{
if (ptr != NULL)
free(ptr);
aligned_free(ptr);
}

void *pfs_malloc_array(PFS_builtin_memory_class *klass, size_t n, size_t size, myf flags)
Expand Down

0 comments on commit 04477bd

Please sign in to comment.