cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: bug in curl_easy_perform [PATCH]

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 23 Aug 2001 16:14:26 +0200 (MET DST)

On Thu, 23 Aug 2001, T. Bharath wrote:

> you mean i have to call cleanup after every download. But in the process
> i would lose the common settings and have to initialise them again.May be
> this is not the right solution

No, that's not what I mean. _cleanup() will still cleanup, but the fix I'm
talking about will make the urlstringalloc bit get cleared when you set a new
URL using CURLOPT_URL. See the attached patch.

> can you publish a patch once you are done please

Certainly!

The attached patch should do it.

(This fix is included in the just committed url.c 1.142, but there are also
other fixes in that version which makes a clean diff between 1.141 and 1.1142
slightly bigger than this and not as neat for this particular purpose.)

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/

Received on 2001-08-23