cURL / Mailing Lists / curl-library / Single Mail


Re: multi transfer in curl 7.17.1 returned data and connect error`

From: Daniel Stenberg <>
Date: Mon, 19 Nov 2007 23:38:24 +0100 (CET)

On Mon, 19 Nov 2007, Simcha Churaroo wrote:

> Since I played with the source - I am attaching it.

Two things:

#1 - valgrind (or equivalent) is your friend

#2 - As #1 shows, there are memory problems in your code. The main clue is
      found in the man page for curl_multi_info_read() which says:

    WARNING: The data the returned pointer points to will not survive calling
    curl_multi_cleanup(3), curl_multi_remove_handle(3) or curl_easy_cleanup(3).

I've been pondering on a way to fix this artifact, as it bites quite a few
people, but I have not yet got any really bright ideas that are as nicely
dealt with as the current approach...

  Commercial curl and libcurl Technical Support:
Received on 2007-11-19