[asterisk-dev] [Code Review] 2701: Improved feature limits interval hook implementaion.
rmudgett
reviewboard at asterisk.org
Fri Jul 26 15:44:52 CDT 2013
> On July 26, 2013, 8:35 p.m., Matt Jordan wrote:
> > /trunk/bridges/bridge_builtin_interval_features.c, lines 164-173
> > <https://reviewboard.asterisk.org/r/2701/diff/1/?file=42546#file42546line164>
> >
> > You probably could just move the module ref passed the check for feature_limits being allocated successfully and ref bump the module once you know the destructor will be called on error.
I had it there initially. I did it this way because this code is in the module in question and the ref needs to be bumped ASAP and allocations may take awhile. Module ref changes really should happen while no code in the module is running. It just has a tendency to be difficult to do sometimes.
- rmudgett
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/2701/#review9231
-----------------------------------------------------------
On July 26, 2013, 2:45 a.m., rmudgett wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/2701/
> -----------------------------------------------------------
>
> (Updated July 26, 2013, 2:45 a.m.)
>
>
> Review request for Asterisk Developers.
>
>
> Bugs: ASTERISK-22107
> https://issues.asterisk.org/jira/browse/ASTERISK-22107
>
>
> Repository: Asterisk
>
>
> Description
> -------
>
> * Fixed feature limits to not use special members of struct ast_bridge_features.
>
> * Fixed memory leak in off nominal paths of bridge_builtin_set_limits().
>
> * Fixed off nominal path in ast_bridge_features_limits_construct() freeing unallocated memory if it was not called by bridge_builtin_set_limits().
>
> * Made bridge_builtin_interval_features.so unloadable.
>
> * Simplified parking's use of its duration interval hook.
>
> * Made BridgeWait S option not depend upon another module being loaded.
>
>
> Diffs
> -----
>
> /trunk/apps/app_bridgewait.c 395492
> /trunk/bridges/bridge_builtin_interval_features.c 395492
> /trunk/include/asterisk/bridge_features.h 395492
> /trunk/main/bridge.c 395492
> /trunk/res/parking/parking_bridge_features.c 395492
>
> Diff: https://reviewboard.asterisk.org/r/2701/diff/
>
>
> Testing
> -------
>
> Interval hooks (start, duration, end) still fire.
> The bridge_builtin_interval_features.so module can be unloaded and reloaded successfully.
> The BridgeWait S option still works.
>
>
> Thanks,
>
> rmudgett
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20130726/27bd305f/attachment-0001.htm>
More information about the asterisk-dev
mailing list