cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: FW: scp upload failure memory leak

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 24 May 2008 22:10:58 +0200 (CEST)

On Wed, 21 May 2008, Jeff Weber wrote:

> I've attached tests/data/test62[78] with scp and sftp upload timeouts
> respectively, showing memory leaks. The tests requires an sshd that will
> write to /dev/null. The test cases just upload /dev/zero to
> scp://localhost/dev/null with a --max-time timeout.

Thanks a lot! Now I could easily repeat the problems and after some headaches
on how to fix these leaks, I think the attached patch fixes the leaks for both
SCP and SFTP aborted transfers.

It would be great if you could verify that it fixes your problems too before I
commit it.

-- 
  / daniel.haxx.se

Received on 2008-05-24