31
31
void* my_realloc(void* oldpoint, size_t size, myf my_flags)
35
DBUG_PRINT("my",("ptr: 0x%lx size: %lu my_flags: %d", (long) oldpoint,
36
39
if (!oldpoint && (my_flags & MY_ALLOW_ZERO_PTR))
39
42
if (!(point = malloc(size)))
41
44
if (my_flags & MY_FREE_ON_ERROR)
43
46
if (my_flags & MY_HOLD_ON_ERROR)
46
49
if (my_flags & MY_FAE+MY_WME)
47
50
my_error(EE_OUTOFMEMORY, MYF(ME_BELL+ME_WAITTANG),size);