Commit 1f726d05 by Carlos Martín Nieto

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.
parent 3e163b67
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment