Skip to content

Commit 9210a00

Browse files
committed
Merge branch 'en/sparse-checkout-leakfix'
Leakfix. * en/sparse-checkout-leakfix: sparse-checkout: fix a couple minor memory leaks
2 parents b855f50 + 0f03f04 commit 9210a00

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

builtin/sparse-checkout.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,8 @@ static void clean_tracked_sparse_directories(struct repository *r)
185185
item->string);
186186
}
187187

188+
strvec_clear(&s);
189+
clear_pathspec(&p);
188190
dir_clear(&dir);
189191
}
190192

0 commit comments

Comments
 (0)