cURL / Mailing Lists / curl-library / Single Mail


Re: curl_easy_cleanup with curl_multi_info_read

From: Daniel Stenberg <>
Date: Thu, 19 Feb 2004 15:35:17 +0100 (CET)

On Wed, 18 Feb 2004, codemastr wrote:

> When I use curl_multi_info_read(), I get a CURLMsg struct (msg). Is doing:
> curl_easy_cleanup(msg->easy_handle);
> A safe way to cleanup that handle when I'm done with it? Or must I keep a
> list of the easy handles somewhere else and cleanup like that?

The memory used for the struct that curl_multi_info_read() returns is
allocated per easy-handle in the multi-handle.

That means the struct will be freed when you call curl_multi_remove_handle()
or curl_multi_cleanup().

Does this answer your question?

    Daniel Stenberg -- --
   [[ Do not send mails to this email address. They won't reach me. ]]
Received on 2004-02-19