1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-05 09:18:56 +00:00

Tmp was not freed in case of errors in save_branch().

This commit is contained in:
Peter Berg Larsen 2005-03-10 11:18:31 +00:00 committed by Alexandre Julliard
parent f79863d20f
commit 514f432031

View File

@ -1639,11 +1639,11 @@ static int save_branch( struct key *key, const char *path )
/* if successfully written, rename to final name */
if (ret) ret = !rename( tmp, path );
if (!ret) unlink( tmp );
free( tmp );
}
done:
if (real) free( real );
free( tmp );
free( real );
if (ret) make_clean( key );
return ret;
}