scotty should handle what you are doing without leaks, but try something like
the following anyway...
proc setMib {var val} {
global s mibval
if { ! [ info exists mibval($var) ] } {
$s instance $var mibval($var) $val
}
set mibval($var) $val
}
/b
-- !! 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.