libmicrohttpd
[Top][All Lists]
Advanced

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

Re: [libmicrohttpd] MHD cannot write the entire chunked deflate data (de


From: Christian Grothoff
Subject: Re: [libmicrohttpd] MHD cannot write the entire chunked deflate data (deflate/chunked)
Date: Sun, 10 Feb 2019 23:08:12 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0

On 2/10/19 10:45 PM, silvioprog wrote:
> 
> This is the example (now it contains some error handling). Feel
> absolutely free to change it if you find something that could be
> improved, and let me know if it could be useful and distributed in the
> "src/examples/":

Sure, except for one thing: your clean up is not clean: on the "error:"
path, you do not "free(holder)", and on some of the "return MHD_NO"
paths you leak the entire response object.

If you fix those minor nitpicks, this should make a nice example.

Thanks & happy hacking!

-Christian

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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