#44 5.4: memory leak in UDP transport code

closed
Thomas Anders
None
1
2012-11-09
2006-12-16
Magnus Fromreide
No

snmp_udp_transport leaks memory - the addr_pair is never deallocated and never leaves the function so I changed it to be a local variable.

The attached patch corrects this and makes a small adjustment to a debug printout as well.

Discussion

  • Patch to avoid memory leak in snmpUDPDomain

     
  • Thomas Anders
    Thomas Anders
    2007-05-03

    Logged In: YES
    user_id=848638
    Originator: NO

    Now publishing as an official patch.

     
  • Solved in 5.4 and trunk r15683

     
  • Solved in 5.2 and 5.3 in r 17293