libmicrohttpd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Tim Rühsen
Subject: Re: [libmicrohttpd] Is there something like MHD_free() ?
Date: Mon, 09 Oct 2017 21:41:53 +0200
User-agent: KMail/5.2.3 (Linux/4.13.0-1-amd64; KDE/5.37.0; x86_64; ; )

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

[Prev in Thread] Current Thread [Next in Thread]