summaryrefslogtreecommitdiffstats
path: root/builtin/sparse-checkout.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-02-12 01:56:01 +0100
committerJunio C Hamano <gitster@pobox.com>2022-02-12 01:56:01 +0100
commit9210a00d65fca884d2ecdcab32b917a672079014 (patch)
tree56189a1b5a8e409e3bab346074f2b180f24ccb9d /builtin/sparse-checkout.c
parentMerge branch 'rc/negotiate-only-typofix' (diff)
parentsparse-checkout: fix a couple minor memory leaks (diff)
downloadgit-9210a00d65fca884d2ecdcab32b917a672079014.tar.xz
git-9210a00d65fca884d2ecdcab32b917a672079014.zip
Merge branch 'en/sparse-checkout-leakfix'
Leakfix. * en/sparse-checkout-leakfix: sparse-checkout: fix a couple minor memory leaks
Diffstat (limited to 'builtin/sparse-checkout.c')
-rw-r--r--builtin/sparse-checkout.c2
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);
}