Fix memory leak (list of config files).