www.libssh2.org | Daily snapshots | Mailing list archive | Docs | Examples | github

Archive Index This month's Index

Subject: Re: sftp functions leaking memory?

Re: sftp functions leaking memory?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 18 May 2012 13:14:42 +0200 (CEST)

On Fri, 18 May 2012, Marta wrote:

> I modified the non blocking sftp example to operate in a loop (see
> attachment, if you want to compile it you will have to change the pmemlog
> string to match your system, and include the right libssh2_config.h).

Great. I will give that a try soonish, when I get some time. Does libssh2 free
all the memory properly when the examples cleanup and exits or can valgrind
point out any leaks?

> - I've tested this in libssh2-1.3.0, libssh2-1.4.1 and libssh2-1.4.2
> (yesterdays' morning snapshot, the zombies thing gave me hope... )

That was my first hunch too, but as you already ruled that out...

  / daniel.haxx.se
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2012-05-18

the libssh2 team