Re: Fix for the scotty memory leak

schoenw@cs.utwente.nl
Tue, 4 Feb 1997 21:20:07 +0100

jsong@nlc.com said:

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

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

I think this problem has already been fixed somewhere on the way from
version 2.0.2 to version 2.1.5. (I fixed a several memory leaks while
working on the 2.1.0 version.)
Juergen

-- 
Juergen Schoenwaelder schoenw@cs.utwente.nl http://www.cs.utwente.nl/~schoenw
Computer Science Department, University of Twente,   (Fax: +31-53-489-3247)
P.O. Box 217, NL-7500 AE Enschede, The Netherlands.  (Tel. +31-53-489-3678)
--
!! 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.