From b65c4ef44b0243a93290747afaae95c1c1942475 Mon Sep 17 00:00:00 2001 From: Ray Lai Date: Sat, 3 Feb 2007 05:18:41 +0000 Subject: Plug memory leak. OK otto@. --- usr.bin/ftp/fetch.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'usr.bin/ftp') diff --git a/usr.bin/ftp/fetch.c b/usr.bin/ftp/fetch.c index 2815d0456f2..5a5f48175bf 100644 --- a/usr.bin/ftp/fetch.c +++ b/usr.bin/ftp/fetch.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fetch.c,v 1.70 2006/09/25 18:59:59 deraadt Exp $ */ +/* $OpenBSD: fetch.c,v 1.71 2007/02/03 05:18:40 ray Exp $ */ /* $NetBSD: fetch.c,v 1.14 1997/08/18 10:20:20 lukem Exp $ */ /*- @@ -38,7 +38,7 @@ */ #if !defined(lint) && !defined(SMALL) -static const char rcsid[] = "$OpenBSD: fetch.c,v 1.70 2006/09/25 18:59:59 deraadt Exp $"; +static const char rcsid[] = "$OpenBSD: fetch.c,v 1.71 2007/02/03 05:18:40 ray Exp $"; #endif /* not lint and not SMALL */ /* @@ -1166,6 +1166,7 @@ proxy_connect(int socket, char *host) if (write(socket, connstr, l) != l) err(1, "Could not send connect string"); read(socket, &buf, sizeof(buf)); /* only proxy header XXX: error handling? */ + free(connstr); return(200); } #endif -- cgit v1.2.3