[AGENT++] get_printable_oid memory management
Ramin Dousti
ramin at cannon.eng.us.uu.net
Tue Sep 7 17:18:48 CEST 2004
Hello,
I have a simple (and maybe stupid) question.
The short version of the question is "Who is responsible for the memory
de-allocation of the memory block pointed by get_printable_oid() of a Vb
object?"
Now a slightly more verbose version of the question: I have a simple trap
processing application. Every time a trap comes in I extract the info
from the PDU (by means of get_printable_...()), and process it accordingly.
I noticed a very slow memory leak in my application and tried to correct
it and have not (yet) been able to locate the cause of it. However, the
above member function returns a "const char *" which I believe is being
allocated on the heap and if that's the case I was wondering who is doing
the memory management for it.
Thank you in advance,
Ramin
More information about the AGENTPP
mailing list