cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Fwd: Segfault when downloading multiple sftp files in parallel

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 30 Jun 2016 11:40:51 +0200 (CEST)

On Thu, 30 Jun 2016, Gou Lingfeng wrote:

> Thanks. This solves the segfault bug.

Cool, I've now pushed it.

> But I wonder how those pointers get freed. Memory leak might be a problem if
> a multi handle is used to drive millions of easy handle.

I ran all the SFTP tests we have and none of them leaked anything. The memory
is already freed at the appropriate places, this change just removed the frees
from the wrong place.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:  https://curl.haxx.se/mail/etiquette.html
Received on 2016-06-30