Fix: double free
The DIR ccache code and tests don't quite work yet.