From 2a0f67f04cb717a7e57192696d69f91a3d208705 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Sat, 21 Mar 2015 21:48:03 +0100 Subject: [PATCH] git: make sure to close the network stream In case of a bad url or other error during the connection setup, we close the stream via free. --- src/transports/git.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/transports/git.c b/src/transports/git.c index 5ec98d867..726712dff 100644 --- a/src/transports/git.c +++ b/src/transports/git.c @@ -136,6 +136,7 @@ static void git_proto_stream_free(git_smart_subtransport_stream *stream) t->current_stream = NULL; + git_stream_close(s->io); git_stream_free(s->io); git__free(s->url); git__free(s);