Realloc ptr to size bytes. ptr must have been previously allocated with luaT_alloc or luaT_realloc, or the C malloc or realloc functions. A Lua error will be generated if running out of memory.