[Bug 1921] [Patch] memory leak in sftp-client.c
bugzilla-daemon at bugzilla.mindrot.org
bugzilla-daemon at bugzilla.mindrot.org
Sun Jul 31 05:50:21 EST 2011
https://bugzilla.mindrot.org/show_bug.cgi?id=1921
--- Comment #2 from Loganaden Velvindron <loganaden at gmail.com> 2011-07-31 05:50:21 EST ---
(In reply to comment #0)
> Created attachment 2071 [details]
> Fix for memory leak in sftp-client.c
>
> in do_hardlink(), buffer_init(&msg) may be unfreed
> if the server does not support hardlink condition is met.
>
> Jonathan Armani (armani@) advises moving it down.
>
> Same thing happens in do_readlink(): if it's unable
> to readlink(), the function returns without freeing
> msg.
>
> I've attached a patch. This runs on both openbsd -current
> & portable openssh -current.
>
> The attached patch concerns portable OpenSSH.
>
> Thanks & Regards,
> //Logan
> C-x-C-c
My mistake. I sent another patch for OpenSSH on openbsd.
http://marc.info/?l=openbsd-tech&m=131131952504707&w=2
--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
More information about the openssh-bugs
mailing list