summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartynas Venckus <martynas@cvs.openbsd.org>2010-08-25 20:32:38 +0000
committerMartynas Venckus <martynas@cvs.openbsd.org>2010-08-25 20:32:38 +0000
commit5fa7cbf2720de57e4ec997758522caff75547a8a (patch)
treec36d14e12ecf812b054bb5bc293df63947c7a69c
parentac83a82dd92bd9617467b46ae0e4d297b1771e3e (diff)
don't free proxyurl and cookie twice in the location code; with halex@
-rw-r--r--usr.bin/ftp/fetch.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.bin/ftp/fetch.c b/usr.bin/ftp/fetch.c
index 4be7176fb3a..9dd8489234a 100644
--- a/usr.bin/ftp/fetch.c
+++ b/usr.bin/ftp/fetch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fetch.c,v 1.102 2010/07/23 22:27:16 halex Exp $ */
+/* $OpenBSD: fetch.c,v 1.103 2010/08/25 20:32:37 martynas Exp $ */
/* $NetBSD: fetch.c,v 1.14 1997/08/18 10:20:20 lukem Exp $ */
/*-
@@ -758,8 +758,6 @@ again:
} else if (isredirect &&
strncasecmp(cp, LOCATION, sizeof(LOCATION) - 1) == 0) {
cp += sizeof(LOCATION) - 1;
- free(proxyurl);
- free(cookie);
if (strstr(cp, "://") == NULL) {
#ifdef SMALL
errx(1, "Relative redirect not supported");