diff options
author | Martynas Venckus <martynas@cvs.openbsd.org> | 2010-08-25 20:32:38 +0000 |
---|---|---|
committer | Martynas Venckus <martynas@cvs.openbsd.org> | 2010-08-25 20:32:38 +0000 |
commit | 5fa7cbf2720de57e4ec997758522caff75547a8a (patch) | |
tree | c36d14e12ecf812b054bb5bc293df63947c7a69c | |
parent | ac83a82dd92bd9617467b46ae0e4d297b1771e3e (diff) |
don't free proxyurl and cookie twice in the location code; with halex@
-rw-r--r-- | usr.bin/ftp/fetch.c | 4 |
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"); |