templates / branches--on commit read-cache.c: fix memory leaks caused by removed cache entries (5699d17)
   1: this is just to ensure the directory exists.