diff --git a/builtin/checkout.c b/builtin/checkout.c index 81f07c3ef2..fd273cdf2a 100644 --- a/builtin/checkout.c +++ b/builtin/checkout.c @@ -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; }