mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-03-09 01:46:59 -04:00
Move freeaddrinfo() call after failure-reporting loop.
This commit is contained in:
2
socket.c
2
socket.c
@@ -299,7 +299,6 @@ int open_socket_out(char *host, int port, const char *bind_addr,
|
||||
}
|
||||
break;
|
||||
}
|
||||
freeaddrinfo(res0);
|
||||
|
||||
if (s < 0) {
|
||||
char buf[2048];
|
||||
@@ -313,6 +312,7 @@ int open_socket_out(char *host, int port, const char *bind_addr,
|
||||
s = -1;
|
||||
}
|
||||
|
||||
freeaddrinfo(res0);
|
||||
free(errnos);
|
||||
|
||||
return s;
|
||||
|
||||
Reference in New Issue
Block a user