diff options
author | Ray Lai <ray@cvs.openbsd.org> | 2007-02-03 05:18:41 +0000 |
---|---|---|
committer | Ray Lai <ray@cvs.openbsd.org> | 2007-02-03 05:18:41 +0000 |
commit | b65c4ef44b0243a93290747afaae95c1c1942475 (patch) | |
tree | 9a3b1f36327912d68eccaeb4dbddf45daffcf529 /usr.bin/ftp | |
parent | 700c3feef68095acdb8fa061ca0961e008d72e74 (diff) |
Plug memory leak.
OK otto@.
Diffstat (limited to 'usr.bin/ftp')
-rw-r--r-- | usr.bin/ftp/fetch.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 |