curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: Leak when sending multipart/form-data repeatedly

From: Patrick Monnerat via curl-library <curl-library_at_cool.haxx.se>
Date: Wed, 20 Dec 2017 19:49:54 +0100

On 12/20/2017 03:07 PM, Patrick Monnerat via curl-library wrote:
>
> On 12/19/2017 05:31 PM, Martin Galvan via curl-library wrote:
>> Hi everyone,
>
> Hi Martin,
>
>>   I'm testing the following program (replace URL by something real):
> ..
>> When I run this, Valgrind shows the following:
> ..
>> ==29988== 176 (32 direct, 144 indirect) bytes in 1 blocks are
>> definitely lost in loss record 567 of 617
> ..
>> I'm concerned about the lost blocks here.
>
> Many thanks for the detailed report and test program.
>
>> Am I missing a cleanup?
>
> No you're not: I can confirm it's a bug: I have identified it and will
> investigate for a fix shortly.
>
> I'll keep you informed on this list.
>

I pushed a fix and a test case for it:
https://github.com/curl/curl/commit/f009bbe1f625b19236dc2ed57726b2f0f39a27c4
You may test it with your case and a clone from master branch.

Thanks again for reporting.
Patrick
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2017-12-20