cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: core dump on curl_easy_cleanup (AIX)

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Tue, 2 Nov 2004 08:29:08 +0100 (CET)

On Mon, 1 Nov 2004, Sachin Mahajan wrote:

> I think you are right. Is there any alternative?

Yes, the alternative to doing it wrong is doing it right! ;-)

Like my updated example:

   http://curl.haxx.se/lxr/source/docs/examples/getinmemory.c

> This happens when I try to upload large pdf files(not more then 600k
> though). Is there any workaround for the cleanup(realloc)

The crash in the cleanup seems to happen because the memory list is destroyed
when free() is called.

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-11-02