On Sat, 12 Jan 2008, Andrey Kamchatnikov wrote:

> 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.

Hi,

I'm rather new to the net-snmp stuff, but I guess except for those
deeply involved with the code, people will need some more information
to answer your question.

1) which mib2c config file did you use to generate the code
2) a bit more code preceding the malloc statement would be helpful.

Apart from that, if there is no free statement in the generated code,
chances are you have to do it yourself. I'd recomment to doublecheck
the comments, especially those starting with XXX: for hints where to
do it.

HTH

-------------------------------------------------------------------------
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
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to