Make sure we don't leak memory again.
diff --git a/src/transports/local.c b/src/transports/local.c
index 2a85e95..a9da814 100644
--- a/src/transports/local.c
+++ b/src/transports/local.c
@@ -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);