Subject: Re: About allocation/desallocation

Re: About allocation/desallocation

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 28 Mar 2009 22:33:07 +0100 (CET)

On Sat, 28 Mar 2009, Jean-Louis CHARTON wrote:

> => Here, notice that on failure, session->userauth_host_method is freed.
> Also notice that in userauth_hostbased_fromfile, there is no call to
> free pubkeydata.

> So I believe there is a memory leak in userauth_hostbased_fromfile.
>
> Am I right or is there something I've missed?

I'd say you're entirely right! I've committed a fix for this just now. Thanks
a lot for your great catch!

-- 
  / daniel.haxx.se
------------------------------------------------------------------------------
_______________________________________________
libssh2-devel mailing list
libssh2-devel_at_lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel
Received on 2009-03-28