summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Stoeckmann <tobias@cvs.openbsd.org>2013-03-30 10:11:36 +0000
committerTobias Stoeckmann <tobias@cvs.openbsd.org>2013-03-30 10:11:36 +0000
commit480bb7a895db405907b783bab099fc91d09e9001 (patch)
treee1407a92489d077738643e9cbcc7f9233d8c91c4
parent9e8aea1052aad01494751bd2779dcdd8b0da4e05 (diff)
Fixed a memory leak during HTTP header parsing.
ok deraadt, halex, sthen
-rw-r--r--usr.bin/ftp/fetch.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/ftp/fetch.c b/usr.bin/ftp/fetch.c
index 1596446333e..03ebee9b4ac 100644
--- a/usr.bin/ftp/fetch.c
+++ b/usr.bin/ftp/fetch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fetch.c,v 1.107 2012/08/18 06:46:46 haesbaert Exp $ */
+/* $OpenBSD: fetch.c,v 1.108 2013/03/30 10:11:35 tobias Exp $ */
/* $NetBSD: fetch.c,v 1.14 1997/08/18 10:20:20 lukem Exp $ */
/*-
@@ -877,6 +877,7 @@ again:
free(redirurl);
goto cleanup_url_get;
}
+ free(buf);
}
/* Open the output file. */