diff options
| author | Jeff King <peff@peff.net> | 2024-06-04 06:13:32 -0400 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-06-05 09:51:43 -0700 |
| commit | 008f59d2d6b3be1017d8d321985b89d85659df04 (patch) | |
| tree | acf241fb9e1739d2066155f366c08fb88f1fea84 /refs/files-backend.c | |
| parent | a14d49ca846df43f706691b6219140673a65500b (diff) | |
sparse-checkout: free sparse_filename after use
We allocate a heap buffer via get_sparse_checkout_filename(). Most calls
remember to free it, but sparse_checkout_init() forgets to, causing a
leak. Ironically, it remembers to do so in the error return paths, but
not in the path that makes it all the way to the function end!
Fixing this clears up 6 leaks from t1091.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs/files-backend.c')
0 files changed, 0 insertions, 0 deletions
