>>>>> On Wed, 20 Apr 2005 10:03:10 +0100, "Andy Ford" <[EMAIL PROTECTED]> said:

Andy> I have taken a look at the embedded Perl approach and written a
Andy> script to do exactly what I want. Unfortunately, there is a huge
Andy> memory leak in the Perl side. I have already spoken to Robert
Andy> Story ref this problem and we have agreed it is the embedded
Andy> Perl implementation rather than snmptrapd itself.

Can you apply the following patch in the perl/TrapReceiver directory
and see if it fixes your embedded perl leak problem?

Index: TrapReceiver.xs
===================================================================
RCS file: /cvsroot/net-snmp/net-snmp/perl/TrapReceiver/TrapReceiver.xs,v
retrieving revision 1.4
diff -u -r1.4 TrapReceiver.xs
--- TrapReceiver.xs     8 Mar 2004 20:41:55 -0000       1.4
+++ TrapReceiver.xs     20 Apr 2005 19:07:03 -0000
@@ -134,6 +134,7 @@

         av_push(vba,tmparray[i]);
         av_push(vba,sv_2mortal(newSVpv(outbuf, oo_len)));
+        free(outbuf);
         av_push(vba,sv_2mortal(newSViv(vb->type)));
         av_push(varbinds, newRV((SV*)vba));
     }


-- 
Wes Hardaker
Sparta, Inc.


-------------------------------------------------------
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to