Skip to content

Commit

Permalink
Merge branch 'en/sparse-checkout-leakfix' into jch
Browse files Browse the repository at this point in the history
Leakfix.

* en/sparse-checkout-leakfix:
  sparse-checkout: fix a couple minor memory leaks
  • Loading branch information
gitster committed Feb 10, 2022
2 parents dccb06f + 0f03f04 commit 18eaabb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions builtin/sparse-checkout.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ static void clean_tracked_sparse_directories(struct repository *r)
item->string);
}

strvec_clear(&s);
clear_pathspec(&p);
dir_clear(&dir);
}

Expand Down

0 comments on commit 18eaabb

Please sign in to comment.