Fix memory leaks in Save_File() error paths