Sorry, the leak is not in sedning trap. It is in event log in RMON. Attached is the 
fix. It is for 5.x version.

Thanks,

Fong


-----Original Message-----
From: Robert Story (Coders) [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 24, 2004 12:48 PM
To: Fong Tsui
Cc: [EMAIL PROTECTED]
Subject: Re: snmp_alarm_register()


On Mon, 23 Aug 2004 17:00:06 -0700 Fong wrote:
FT> Is there unknown memory leak in calling snmp_alarm_register()? In 
FT> the code which I use snmp_alarm_register(), if I make it send traps 
FT> every second for a while,  it has a small memory leak. I wonder 
FT> whether there is an known issue about it.  Any help is appreciated.
FT> 
FT> I am on 5.0.9, on Linux.

Not that I am aware of, but I haven't tried searching the bug database.

 Have you tried having it do something else, instead of sending a trap? That would 
help determine if the leak is from the alarm, or from sending the trap...

-- 
Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/> 
<irc://irc.freenode.net/#net-snmp>
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders>

You are lost in a twisty maze of little standards, all different. 

Attachment: event.c.diff
Description: event.c.diff

Reply via email to