benchcache: Fix double-free of config.
mk_config: Fix segfault when freeing locations.