From 80bf15d61f4620dabdb30fd9b9b2b56754894051 Mon Sep 17 00:00:00 2001 From: Markus Friedl Date: Wed, 26 May 2004 23:02:40 +0000 Subject: missing freeaddrinfo; Andrey Matveev --- usr.bin/ssh/channels.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr.bin') 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) { -- cgit v1.2.3