cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Safe free of IDNA memory

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Fri, 21 May 2004 22:01:54 +0200 (CEST)

On Fri, 21 May 2004, Simon Josefsson wrote:

> FYI, I just released 0.4.5 with a 'idn_free' function, prototyped in the
> header file idn-free.h. It is intentionally not documented yet, pending
> more feedback. I have added a comment to the header file (see below). If
> you have more information or any references, I'd be happy to add them.

The main and biggest reason is the Windows (any others?) way of allowing
different memory subsystems in different areas, like one in a DLL and a
different one in the app using the DLL. It makes it impossible for that app to
free memory allocated by that DLL if no function is provided for that purpose.

In practise, I've come to appreciate that I once added a curl_free() to
libcurl (for all platforms) since this makes it possible for a random generic
application to link with and use my debug-version of the library that uses a
custom memory debug functionality built around the normal malloc, which makes
a plain free() not work with it.

I'll get your new version and start playing with it soon. Thanks for letting
us know!

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