mib2c - allocate and free memory question

"Andrey Kamchatnikov" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <003601c85558$e2796a30$40fefea9@andrey>
Hi,

I have a question regarding mib2c tool.

I have created a file with this tool (C code template) and it calls malloc 
function (see below):

 (* myDetail_val_ptr ) = malloc(mydata.Detail_len* 
sizeof(mydata.Detail[0]));

But I could find in net-snmp library where this memory is freed.

I'll be appreciated if someone can show me the place in net-snmp code where 
free() function is called
for this allocated memory.

Thank you,

Andrey


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.