Commented out snmp_free_pdu() in send_trap_to_sess()

This is a discussion on Commented out snmp_free_pdu() in send_trap_to_sess() within the SNMP Coders forums, part of the Networking and Network Related category; Hi All, I've been investigating a memory leak using net-snmp 5.2.1.2 and I think I'...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-04-2006
derekl@blueyonder.co.uk
 
Posts: n/a
Default Commented out snmp_free_pdu() in send_trap_to_sess()

Hi All,
I've been investigating a memory leak using net-snmp 5.2.1.2 and I think
I've tracked the problem down to the send_trap_to_sess() routine in
agent_trap.c

If snmp_send() fails, then snmp_sess_perror() is called but the pdu is not
freed, the call to snmp_free_pdu() is commented out. However, in
snmp_api.c the comments for snmp_send() state that the caller must call
snmp_free_pdu() if 0 is returned.

I cannot see any bug reports or patches for this problem.

Why would the snmp_free_pdu() be commented out? Is this a genuine problem
or am I missunderstanding the code?

Cheers,
DerekL
derekl@blueyonder.co.uk





-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=...057&dat=121642
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:51 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0