mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-08 19:51:31 +00:00
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.
This commit is contained in:
parent
a3f693e9a1
commit
2a0f67f04c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user