mirror of
https://github.com/git/git.git
synced 2026-01-26 18:44:50 +00:00
checkout: fix memory leak
Discovered via Coverity. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
@@ -232,6 +232,7 @@ static int checkout_merged(int pos, const struct checkout *state)
|
||||
if (!ce)
|
||||
die(_("make_cache_entry failed for path '%s'"), path);
|
||||
status = checkout_entry(ce, state, NULL);
|
||||
free(ce);
|
||||
return status;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user