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 of any API call where MHD returns a pointer to the
> >> application that the application is expected to free.
> > 
> > MHD_basic_auth_get_username_password ?
> > 
> > The docs say the pass and user should be free'd:
> > 
> > 10.1 Using Basic Authentication
> > 
> > Function: char * MHD_basic_auth_get_username_password (struct
> > MHD_Connection *connection, char** password)
> 
> Ah, yes, good point, I tend to forget about the auth APIs ;-).
> 
> In that case, I guess it would make sense to add MHD_free(), unless
> there is a better way?

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_free, ...

Regards, Tim

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to