cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: curl_escape() memory leak

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 25 Jul 2002 15:33:11 +0200 (MET DST)

On Thu, 27 Jun 2002 Priya.Ramakrishnan_at_WellsFargo.COM wrote:

(I corrected the subject line for this mail)

> I am getting a memory leak when i am using curl_escape to URL encode the
> message.

curl_escape() returns a malloc()ed memory. You must make sure to free() that
memory when you've finished using it. libcurl will not do that for you.

The man page explains this.

-- 
  Cheers,
  Daniel Stenberg
-------------------------------------------------------
This sf.net email is sponsored by: Jabber - The world's fastest growing 
real-time communications platform! Don't just IM. Build it in! 
http://www.jabber.com/osdn/xim
Received on 2002-07-25