Commit 514f4320 authored by Peter Berg Larsen's avatar Peter Berg Larsen Committed by Alexandre Julliard

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

parent f79863d2
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment