Great ! Open a PR here: https://bugzilla.mindrot.org/
On Mon, Jan 16, 2012 at 6:27 PM, Jan Klemkow <[email protected]> wrote: > Hello, > > this is a diff which patch a memory leak in OpenSSH. > I have just compiled it without warnings. > I am unable to run this exactly this code path. > > bye, > Jan > > Index: ssh-pkcs11-client.c > ==============================**==============================**======= > RCS file: /mount/cvsdev/cvs/openbsd/src/**usr.bin/ssh/ssh-pkcs11-client.** > c,v > retrieving revision 1.2 > diff -u -w -p -p -w -r1.2 ssh-pkcs11-client.c > --- ssh-pkcs11-client.c 24 Feb 2010 06:12:53 -0000 1.2 > +++ ssh-pkcs11-client.c 16 Jan 2012 13:25:20 -0000 > @@ -126,6 +126,7 @@ pkcs11_rsa_private_encrypt(int flen, con > } > xfree(signature); > } > + buffer_free(&msg); > return (ret); > } > > -- Brightest day, Blackest night, No bug shall escape my sight, And those who worship evil's mind, be wary of my powers, puffy lantern's light !
