Robert thanks for the response. I'm using the RH9 "top" command and I should
see a drop in memory allocation when I call CONTAINER_REMOVE.
I dont, I definetly see it when a container row is created but not when I
call CONTAINER_REMOVE hence my concern.
When I perform a get operation it does look like its getting removed from
the container, but I dont see any memory size change which I should. The
reason I know that the row is still present is that I can still use the
pointer to the row object after CONTAINER_REMOVE. Hence the object still
exists.
Thats why I think its "marked" and not deallocated.

When I add new rows to the container the snmpd grows in size despite it
assuming previous deletion.

I'm trying to get purify to run on this beast but its crashing. Yet to
debug.

Cheers,
Garyc

----- Original Message -----
From: "Robert Story" <[EMAIL PROTECTED]>
To: "Gary Clark" <[EMAIL PROTECTED]>
Cc: <[email protected]>
Sent: Thursday, April 21, 2005 10:45 AM
Subject: Re: Net-SNMP 5.1.2 Memory leaks


> On Tue, 19 Apr 2005 18:03:13 -0500 Gary wrote:
> GC> Has anybody seen the memory leaks with Red Hat 9 Net-SNMP 5.1.2?
> GC> I'm using the function CONTAINER_REMOVE to remove the context but its
looks
> GC> like it does not free memory?
>
> Correct. It simply removes the item from the container. The container is
dumb,
> and doesn't know how the thing it is holding was allocated (or if it was
> allocated at all).
>
> CC> Eek? Has anybodyelse seen this? The context does
> GC> appear to be free from the list but no memory deallocation?
>
> Which conf file/helper are you using?
>
> --
> NOTE: messages sent directly to me, instead of the lists, will be deleted
>       unless they are requests for paid consulting services.
>
> Robert Story; NET-SNMP Junkie
> Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp>
> Archive:
<http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users>
>
> You are lost in a twisty maze of little standards, all different.



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
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