Displaying 1 result from an estimated 1 matches for "do_hardlink".
Did you mean:
do_hard_links
2011 Jul 30
3
[Bug 1921] New: [Patch] memory leak in sftp-client.c
...W
Severity: trivial
Priority: P2
Component: sftp
AssignedTo: unassigned-bugs at mindrot.org
ReportedBy: loganaden at gmail.com
Created attachment 2071
--> https://bugzilla.mindrot.org/attachment.cgi?id=2071
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 run...