Bugfix: Kept stale buffer reference following reallocation.