From 9728cfde5f3685cb11302560a67754104d618ea2 Mon Sep 17 00:00:00 2001 From: Arthur Schreiber Date: Tue, 25 Jun 2013 11:17:55 +0300 Subject: Make sure we don't leak memory again. --- src/transports/local.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/transports/local.c b/src/transports/local.c index 2a85e95e7..a9da8146c 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); -- cgit v1.2.1