diff options
| author | Junio C Hamano <gitster@pobox.com> | 2022-02-11 16:56:01 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2022-02-11 16:56:01 -0800 |
| commit | 9210a00d65fca884d2ecdcab32b917a672079014 (patch) | |
| tree | 56189a1b5a8e409e3bab346074f2b180f24ccb9d | |
| parent | Merge branch 'rc/negotiate-only-typofix' (diff) | |
| parent | sparse-checkout: fix a couple minor memory leaks (diff) | |
| download | git-9210a00d65fca884d2ecdcab32b917a672079014.tar.gz git-9210a00d65fca884d2ecdcab32b917a672079014.zip | |
Merge branch 'en/sparse-checkout-leakfix'
Leakfix.
* en/sparse-checkout-leakfix:
sparse-checkout: fix a couple minor memory leaks
| -rw-r--r-- | builtin/sparse-checkout.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/builtin/sparse-checkout.c b/builtin/sparse-checkout.c index 2b0e1db2d2..a311483a7d 100644 --- a/builtin/sparse-checkout.c +++ b/builtin/sparse-checkout.c @@ -185,6 +185,8 @@ static void clean_tracked_sparse_directories(struct repository *r) item->string); } + strvec_clear(&s); + clear_pathspec(&p); dir_clear(&dir); } |
