Code

transport.c::get_refs_via_curl(): do not leak refs_url
authorMike Hommey <mh@glandium.org>
Sat, 6 Jun 2009 08:43:40 +0000 (16:43 +0800)
committerJunio C Hamano <gitster@pobox.com>
Sat, 6 Jun 2009 17:56:27 +0000 (10:56 -0700)
Signed-off-by: Mike Hommey <mh@glandium.org>
Signed-off-by: Tay Ray Chuan <rctay89@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
transport.c

index 89d846e5c3d936739a13983728eaf97a1eb15932..b7c1c391c6d2c93fc07e97d9e3ea1415831504a7 100644 (file)
@@ -519,6 +519,7 @@ static struct ref *get_refs_via_curl(struct transport *transport, int for_push)
                free(ref);
        }
 
+       free(refs_url);
        return refs;
 }