Hi Tim,

We definitively don't have MHD_free() today.

I'm not aware of any API call where MHD returns a pointer to the
application that the application is expected to free.

There is one case in reverse, where for a response the application can
give a pointer to MHD which MHD will then free(), namely
MHD_RESPMEM_MUST_FREE.  Thus, using this may be unsafe on W32 as here
the application allocates and MHD frees.  However, this is purely
intended as an optimization to avoid a copy.

Happy hacking!

Christian

On 10/09/2017 04:38 PM, Tim Rühsen wrote:
> Hi,
> 
> a library included free() function is basically needed on systems where
> the library malloc heap is different from the caller's malloc heap,
> which happens on Windows when the library is a separate DLL.
> 
> 
> So, is there (or could we have) something like
> 
> void MHD_free(void *ptr)
> {
>         free(ptr);
> }
> 
> ?
> 
> 
> With Best Regards, Tim
> 
> 

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to