[Asterisk-code-review] main/pbx: Improve performance of dialplan reloads with large... (asterisk[13])

Richard Mudgett asteriskteam at digium.com
Thu Apr 30 13:57:20 CDT 2015


Richard Mudgett has posted comments on this change.

Change subject: main/pbx: Improve performance of dialplan reloads with large numbers of hints
......................................................................


Patch Set 1: Code-Review-1

(2 comments)

https://gerrit.asterisk.org/#/c/312/1/main/pbx.c
File main/pbx.c:

Line 1235: 		AST_VECTOR_APPEND(&hint->devices, device_name);
device_name will leak if AST_VECTOR_APPEND() returns non-zero.  It means the vector could not grow to accommodate the new pointer.


Line 12584: static void pbx_shutdown(void)
You need to ao2_container_unregister() the hints, hintdevices, and statecbs containers here.


-- 
To view, visit https://gerrit.asterisk.org/312
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: Iedfc97a69d21070c50fca42275d7b3e714e59360
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: Matt Jordan <mjordan at digium.com>
Gerrit-Reviewer: Mark Michelson <mmichelson at digium.com>
Gerrit-Reviewer: Richard Mudgett <rmudgett at digium.com>
Gerrit-HasComments: Yes



More information about the asterisk-code-review mailing list