[asterisk-dev] [Code Review] Resolve severe memory leak in CEL logging modules.
Mark Michelson
reviewboard at asterisk.org
Wed Jul 18 13:53:15 CDT 2012
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/2053/#review6717
-----------------------------------------------------------
Ship it!
Other than the improvements Richard has suggested, this looks good to go.
- Mark
On July 18, 2012, 12:26 p.m., Kevin Fleming wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/2053/
> -----------------------------------------------------------
>
> (Updated July 18, 2012, 12:26 p.m.)
>
>
> Review request for Asterisk Developers.
>
>
> Summary
> -------
>
> A customer reported a significant memory leak using Asterisk 1.8. They have tracked it down do ast_cel_fabricate_channel_from_event() in main/cel.c, which is called by both in-tree CEL logging modules (cel_custom.c and cel_sqlite3_custom.c) for each and every CEL event that they log.
>
> The cause was an incorrect assumption about how data attached to an ast_channel would be handled when the channel is destroyed; the data is now stored in a datastore attached to the channel, which is destroyed along with the channel at the proper time.
>
>
> Diffs
> -----
>
> /branches/1.8/main/cel.c 370182
>
> Diff: https://reviewboard.asterisk.org/r/2053/diff
>
>
> Testing
> -------
>
> Compile testing only.
>
>
> Thanks,
>
> Kevin
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20120718/cab0e150/attachment.htm>
More information about the asterisk-dev
mailing list