Fix for the scotty memory leak

jsong@nlc.com
Tue, 4 Feb 1997 21:08:58 +0100

Hi,

I sent out a help request for the scotty memory leak yesterday. Now I think
I found the course. But since I am using scotty-2.0.2, I am not sure if the
problem has already been resolved in the later releases. Anyway, I'll just
report what I found in case if somebody is still using scotty-2.0.2.

The problem is in SNMP_Decode function contained in the file snmpResponse.c.
At the begining of the function, Tcl_DStringInit is called but the function
Tcl_DStringFree is not called at the exit of the SNMP_Decode. Once I put
the Tcl_DStringFree in, I have found no memory increase no matter how many
straps are processed.

Happy using scotty,

--James Song
jsong@@nlc.com

--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.