Handle allocation failures in the reftable library
The reftable library does not handle allocation failures even though the pluggable allocators that it has do not have a requirement to abort when allocation fails. We need to fix this to avoid segfaults.
Edited by Patrick Steinhardt