[OpenSIPS-Devel] [ opensips-Patches-2828969 ] fix: snmpstat : crash and memleak

SourceForge.net noreply at sourceforge.net
Wed Jul 29 19:50:54 CEST 2009


Patches item #2828969, was opened at 2009-07-29 16:04
Message generated for change (Settings changed) made by bogdan_iancu
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: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Christophe Sollet (csollet)
Assigned to: Bogdan-Andrei Iancu (bogdan_iancu)
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.


----------------------------------------------------------------------

>Comment By: Bogdan-Andrei Iancu (bogdan_iancu)
Date: 2009-07-29 20:50

Message:
Hi Christophe,

Thanks for the fix - the patch was uploaded on SVN trunk and 1.5.

Regards,
Bogdan

----------------------------------------------------------------------

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