]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Resolve severe memory leak in CEL logging modules.
authorKevin P. Fleming <kpfleming@digium.com>
Wed, 18 Jul 2012 19:14:09 +0000 (19:14 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Wed, 18 Jul 2012 19:14:09 +0000 (19:14 +0000)
commit0a924d4b2cb445ca8c1f2d3cb28dfde35b293dc5
treeaec0708acbca503f69785eccb59b40f29c526806
parent55b1ced28166b7028e87376cdc912f71bcba0d3f
Resolve severe memory leak in CEL logging modules.

A customer reported a significant memory leak using Asterisk 1.8. They
have tracked it down to 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.

(closes issue AST-916)
Reported by: Thomas Arimont
Review: https://reviewboard.asterisk.org/r/2053/
........

Merged revisions 370205 from http://svn.asterisk.org/svn/asterisk/branches/1.8

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@370206 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/cel.c