xxx_kex possible memory leak?

Markus Friedl markus at openbsd.org
Sat Apr 20 01:21:52 EST 2002


no, it does not get freed, it should get free()ed on exit(2).

cf. packet_close()

On Thu, Apr 18, 2002 at 02:26:53PM -0400, Moulding, Dan wrote:
> Howdy,
> 
> I'm working on porting the portable version of OpenSSH to the Nucleus RTOS.
> So far I've had a great deal of success. However, I've run into a possible
> memory leak, and I'm not sure whether I need to write my own cleanup
> function for it or not. The xxx_kex global (defined in sshd.c) seems to not
> get freed. I've had difficulty finding a cleanup routine for it. I've been
> looking for anything similar to key_free() or buffer_free() that might work
> for the Kex struct, but have had no luck. Does anyone know if such a cleanup
> function exists? Or is this a known memory leak? Or am I just smoking crack?
> 
> Any pointers are greatly appreciated!
> 
> Regards,
> 
> Dan Moulding
> Firmware Engineer
> Phone :801.887.9885
> FAX   :801.972.5789
> Cell  :801.541.4984
> Email :dmouldin at enterasys.com
> www   :www.enterasys.com



More information about the openssh-unix-dev mailing list