[OpenSIPS-Devel] [ opensips-Patches-2828969 ] fix: snmpstat : crash and memleak
SourceForge.net
noreply at sourceforge.net
Wed Jul 29 15:04:25 CEST 2009
Patches item #2828969, was opened at 2009-07-29 15:04
Message generated for change (Tracker Item Submitted) made by csollet
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1086412&aid=2828969&group_id=232389
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: trunk
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Christophe Sollet (csollet)
Assigned to: Nobody/Anonymous (nobody)
Summary: fix: snmpstat : crash and memleak
Initial Comment:
- In case of aborted startup (mod_destroy() called without call to mod_init() ), opensips crash trying to access an unallocated structure in snmpstats / interprocess_buffer.c / freeInterprocessBuffer()
As a side effect of fixing the previous one, I noticed that if the interprocess buffer list is empty, freeInterprocessBuffer() do not free the shared memory allocated in initInterprocessBuffers().
Attached patch is a rework of freeInterprocessBuffer() that fix these bugs.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1086412&aid=2828969&group_id=232389
More information about the Devel
mailing list