#include <malloc.h>
void func(void) {
size_t alignment = 1 << 12;
int *ptr;
int *ptr1;
if (NULL == (ptr = (int *)_aligned_malloc(sizeof(int),
alignment))) {
}
if (NULL == (ptr1 = (int *)_aligned_realloc(ptr, 1024,
alignment))) {
_aligned_free(ptr);
}
_aligned_free(ptr1);
}