refs #6142 fix memleakOnRealloc