3307 - fix leaks in load_files thanks to Orivej Desh