mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-10 19:19:18 +00:00
Make sure we don't leak memory again.
This commit is contained in:
parent
edbaa63a7c
commit
9728cfde5f
@ -599,6 +599,13 @@ static int local_close(git_transport *transport)
|
||||
static void local_free(git_transport *transport)
|
||||
{
|
||||
transport_local *t = (transport_local *)transport;
|
||||
size_t i;
|
||||
git_remote_head *head;
|
||||
|
||||
git_vector_foreach(&t->refs, i, head) {
|
||||
git__free(head->name);
|
||||
git__free(head);
|
||||
}
|
||||
|
||||
git_vector_free(&t->refs);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user