cURL / Mailing Lists / curl-library / Single Mail

curl-library

Safe free of IDNA memory

From: Gisle Vanem <gvanem_at_broadpark.no>
Date: Mon, 10 May 2004 15:28:34 +0200

The idna_to_ascii_4z() function as used in libcurl, returns malloc'ed
memory which libcurl frees when connection-handle gets closed.

This works bad (crashes?) if libidna is compiled as a DLL and
the application is using a static C-runtime; the application and
DLL gets their own copy of the heap etc. To to this safely, libidna
should free all memory it allocates.

Simon, how about a new idna_free() function?

--gv
Received on 2004-05-10