Fix memory leak on reallocarray() failure introduced by conversion
from calloc().