[libmicrohttpd] Is there something like MHD_free() ?

2017-10-09 Thread Tim Rühsen
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

Re: [libmicrohttpd] Is there something like MHD_free() ?

2017-10-09 Thread Christian Grothoff
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(), nam

Re: [libmicrohttpd] Is there something like MHD_free() ?

2017-10-09 Thread Tim Rühsen
Hi Christian, On Montag, 9. Oktober 2017 17:46:32 CEST Christian Grothoff wrote: > 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. MHD_basic_auth_get_username_pa

Re: [libmicrohttpd] Is there something like MHD_free() ?

2017-10-09 Thread Christian Grothoff
On 10/09/2017 07:24 PM, Tim Rühsen wrote: > Hi Christian, > > On Montag, 9. Oktober 2017 17:46:32 CEST Christian Grothoff wrote: >> 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

Re: [libmicrohttpd] Is there something like MHD_free() ?

2017-10-09 Thread Tim Rühsen
On Montag, 9. Oktober 2017 19:30:39 CEST Christian Grothoff wrote: > On 10/09/2017 07:24 PM, Tim Rühsen wrote: > > Hi Christian, > > > > On Montag, 9. Oktober 2017 17:46:32 CEST Christian Grothoff wrote: > >> Hi Tim, > >> > >> We definitively don't have MHD_free() today. > >> > >> I'm not aware

Re: [libmicrohttpd] Is there something like MHD_free() ?

2017-10-09 Thread Christian Grothoff
Ok, added and documented in 181ac3c5..6c4c13ef. -Christian On 10/09/2017 09:41 PM, Tim Rühsen wrote: > No better way comes to my mind. Most C libraries have a similar function out > of the same reason. It would be consistent to have it as well. > Think of gnutls_free, idna_free, idn2_free, psl_fr