libmicrohttpd
[Top][All Lists]
Advanced

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

Re: [libmicrohttpd] double free or corruption


From: Christian Grothoff
Subject: Re: [libmicrohttpd] double free or corruption
Date: Wed, 17 Feb 2016 14:17:47 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.5.0

Casual inspection suggests you want MHD_RESPMEM_MUST_COPY here, as you
do free 'listing' yourself, so right now you and MHD both call free(),
which is unhealthy...

-Christian

On 02/17/2016 11:53 AM, Laurence Rochfort wrote:
        
> response = MHD_create_response_from_buffer(strlen(tree_args->listing),
>   tree_args->listing, MHD_RESPMEM_MUST_FREE);
> 

Attachment: 0xE29FC3CC.asc
Description: application/pgp-keys

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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