8205709: Proper allocation handling

Reviewed-by: sspitsyn, mschoene, rhalade
2 files changed