summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2004-05-26 23:02:40 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2004-05-26 23:02:40 +0000
commit80bf15d61f4620dabdb30fd9b9b2b56754894051 (patch)
treedf3be476f66bffe1c3d4463eb2c0e73e0d4bbe08 /usr.bin
parent15e1057659876895d1ad8e4989acadfaf950686c (diff)
missing freeaddrinfo; Andrey Matveev
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ssh/channels.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/ssh/channels.c b/usr.bin/ssh/channels.c
index 3ef20026f31..cdaa9a89eb5 100644
--- a/usr.bin/ssh/channels.c
+++ b/usr.bin/ssh/channels.c
@@ -39,7 +39,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: channels.c,v 1.202 2004/05/21 11:33:11 djm Exp $");
+RCSID("$OpenBSD: channels.c,v 1.203 2004/05/26 23:02:39 markus Exp $");
#include "ssh.h"
#include "ssh1.h"
@@ -2557,6 +2557,7 @@ x11_create_display_inet(int x11_display_offset, int x11_use_localhost,
ai->ai_protocol);
if (sock < 0) {
error("socket: %.100s", strerror(errno));
+ freeaddrinfo(aitop);
return -1;
}
if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {