cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: [PATCH] libssh2 update

From: James Housley <jim_at_thehousleys.net>
Date: Fri, 24 Nov 2006 17:08:02 -0500

On Nov 24, 2006, at 4:54 PM, Daniel Stenberg wrote:

> Hi ho
>
> This version has the global variable use removed and a memory leak
> fixed.
>
> There's still one leak left when I do a simple
>
> curl scp://user:passwd_at_localhost/~/file
>
> Leak detected: memory still allocated: 59 bytes
> At 80b9594, there's 59 bytes.
> allocated by ssh.c:220
>
> ... which happens to be the malloc replacement for libssh2, so
> there's either a resource libssh2 allocates for us that we don't
> free, or libssh2 itself leaks this data.
>

Without even looking I say commit it. I will then start checking all
setup and tear downs of libssh2.

Jim

--
/"\   ASCII Ribbon Campaign  .
\ / - NO HTML/RTF in e-mail  .
  X  - NO Word docs in e-mail .
/ \ -----------------------------------------------------------------
jeh@FreeBSD.org      http://www.FreeBSD.org     The Power to Serve
jim@TheHousleys.Net  http://www.TheHousleys.net
---------------------------------------------------------------------
The wise man built his network upon Un*x.
     The foolish man built his network upon Windows.
Received on 2006-11-24