[OpenSIPS-Devel] [ opensips-Bugs-3411398 ] load_balancer leaks when doing lb_reload

SourceForge.net noreply at sourceforge.net
Thu Sep 29 13:10:47 CEST 2011


Bugs item #3411398, was opened at 2011-09-19 11:26
Message generated for change (Comment added) made by wdoekes
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3411398&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: Walter Doekes (wdoekes)
Assigned to: Bogdan-Andrei Iancu (bogdan_iancu)
Summary: load_balancer leaks when doing lb_reload

Initial Comment:
Hi,

a couple of load_balancer leaks occur when doing lb_reload. Do a while loop around a fifo lb_reload and watch it consume all available mem.

This patch fixes it.

Regards,
Walter Doekes
OSSO B.V.

P.S. Bugs are also in 1.6.

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

Comment By: Walter Doekes (wdoekes)
Date: 2011-09-29 13:10

Message:
BEWARE:

I notice that my shm_free(dst); in load_balanced/lb_data.c (add_lb_dsturi)
is not quite right.

Error handling is not what it's supposed to be there, and simply freeing
dst is not good enough (as it's still linked in data).

However, simply removing the added shm_free() isn't good either, as
rmap_no can now be higher than actual contents.

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3411398&group_id=232389



More information about the Devel mailing list