Re: massive feature/minimalist patch being checked in right now

2011-02-26 Thread Magnus Fromreide
Oh yes, there is one more thing. At the moment the following, fairly basic, configuration fails for me: /path/to/net-snmp/configure --with-defaults --enable-minimalist as the build stops on the linking of snmpd with the error message libtool: link: gcc -fno-strict-aliasing -g -O2 -Ulinux -Dlinu

Re: memory leak calling snmp_send()

2011-02-26 Thread Adam Mendlik
Here is a simple demo I put together that exemplifies the problem I'm seeing. If you run this code as-is, memory use will increase indefinately. However, if you take out the snmp_send() call and just call snmp_free_pdu(), memory use will remain perfectly flat. I should also mention that my netsnmp.

Re: memory leak calling snmp_send()

2011-02-26 Thread Niels Baggesen
Den 23-02-2011 19:07, Adam Mendlik skrev: > My question is: is there a reason why snmp_send() is leaking memory, how > do I fix it, or should I be using a different function in this scenario? Are you checking the return value from snmp_send? I seem to recall that sending traps is different, in th

Re: memory leak calling snmp_send()

2011-02-26 Thread Bart Van Assche
Hello Adam, If you can post a minimal example to this list that allows to reproduce the leak I'll have a look at it. Bart. On Thu, Feb 24, 2011 at 6:50 PM, Adam Mendlik wrote: > I'm using 5.5.1.pre2. > > > On Thu, Feb 24, 2011 at 4:26 AM, Bart Van Assche wrote: > >> On Wed, Feb 23, 2011 at 7