Don't return a freed pointer in allocate_ccache()