We need to check for return codes in the after_alloc function. Some libcalls may fail which is a good way for FP.