diff options
author | Daniel Stenberg <daniel@haxx.se> | 2011-01-25 12:06:50 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2011-01-25 12:06:50 +0100 |
commit | dbcaa0065719acc0383307f13d02d3d0c9b5c635 (patch) | |
tree | ba5429e85c29deb20b592350552744d3a8631963 /tests/libtest | |
parent | 4b837a7e1541c151f6ea16fde92b6f57c5827d8a (diff) |
HTTP: memory leak on multiple Location:
The HTTP parser allocated memory on each received Location: header
without properly freeing old data. Starting now, the code only considers
the first Location: header and will blissfully ignore subsequent ones.
Bug: http://curl.haxx.se/bug/view.cgi?id=3165129
Reported by: Martin Lemke
Diffstat (limited to 'tests/libtest')
-rw-r--r-- | tests/libtest/lib507.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/libtest/lib507.c b/tests/libtest/lib507.c index 9707c9b07..012d8f454 100644 --- a/tests/libtest/lib507.c +++ b/tests/libtest/lib507.c @@ -48,6 +48,7 @@ int test(char *URL) } test_setopt(curls, CURLOPT_URL, URL); + test_setopt(curls, CURLOPT_HEADER, 1L); if ((ret = curl_multi_add_handle(multi, curls)) != CURLM_OK) { fprintf(stderr, "curl_multi_add_handle() failed, " |