fixed bug in rootbeer memory allocator