curl-library
Re: free last used effective URL, necessary?
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 9 Dec 2005 08:37:50 +0100 (CET)
Date: Fri, 9 Dec 2005 08:37:50 +0100 (CET)
On Thu, 8 Dec 2005, Yi Li wrote:
> if I use getinfo CURLINFO_EFFECTIVE_URL, do I need to free it or the easy
> cleanup will do it for me?
As the man page says:
You should not free the memory returned by this function unless it is
explictly mentioned below.
... and it isn't mentioned, so you should not free the memory. the cleanup
call will do it.
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2005-12-09