Merge branch 'en/sparse-checkout-leakfix'

Leakfix.

* en/sparse-checkout-leakfix:
  sparse-checkout: fix a couple minor memory leaks
This commit is contained in:
Junio C Hamano 2022-02-11 16:56:01 -08:00
commit 9210a00d65

View file

@ -185,6 +185,8 @@ static void clean_tracked_sparse_directories(struct repository *r)
item->string);
}
strvec_clear(&s);
clear_pathspec(&p);
dir_clear(&dir);
}