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,
39
36
if (!oldpoint && (my_flags & MY_ALLOW_ZERO_PTR))
42
39
if (!(point = malloc(size)))
44
41
if (my_flags & MY_FREE_ON_ERROR)
45
42
my_free(oldpoint,my_flags);
46
43
if (my_flags & MY_HOLD_ON_ERROR)
49
46
if (my_flags & MY_FAE+MY_WME)
50
47
my_error(EE_OUTOFMEMORY, MYF(ME_BELL+ME_WAITTANG),size);