1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-29 01:03:57 +03:00

connect: Fix a memory leak.

CID: #1238618

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Aris Adamantiadis <aris@0xbadc0de.be>
This commit is contained in:
Andreas Schneider
2015-01-14 11:59:18 +01:00
parent af0dd3fb02
commit 06a0d8ff1c

View File

@@ -289,6 +289,7 @@ socket_t ssh_connect_host(ssh_session session, const char *host,
socket_t ret = ssh_connect_ai_timeout(session, host, port, itr, socket_t ret = ssh_connect_ai_timeout(session, host, port, itr,
timeout, usec, s); timeout, usec, s);
freeaddrinfo(ai);
return ret; return ret;
} }