Free hash table if opening realm file fails
Plug memory leak in cache when destroying temporary entries
Fix invalid free after template postprocessing stuff
Valgrind stack ID is an unsigned int