Subject: Re: About allocation/desallocation

Re: About allocation/desallocation

From: Daniel Stenberg <>
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!

libssh2-devel mailing list
Received on 2009-03-28