<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>xxx_kex possible memory leak?</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>Howdy,</FONT>
</P>
<P><FONT SIZE=2>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?</FONT></P>
<P><FONT SIZE=2>Any pointers are greatly appreciated!</FONT>
</P>
<P><FONT SIZE=2>Regards,</FONT>
</P>
<P><FONT SIZE=2>Dan Moulding</FONT>
<BR><FONT SIZE=2>Firmware Engineer</FONT>
<BR><FONT SIZE=2>Phone :801.887.9885</FONT>
<BR><FONT SIZE=2>FAX :801.972.5789</FONT>
<BR><FONT SIZE=2>Cell :801.541.4984</FONT>
<BR><FONT SIZE=2>Email :dmouldin@enterasys.com</FONT>
<BR><FONT SIZE=2>www :www.enterasys.com</FONT>
</P>
</BODY>
</HTML>