]> 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:18:40 +0000 (19:18 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Wed, 18 Jul 2012 19:18:40 +0000 (19:18 +0000)
commit4a4189b085d20baa88daf2fa5c7e191514791fc2
treee5b180de28079100a4c1db74a2c1d571f1a858dd
parent79087cbbd515a108188b93cf732e5baa1b4f28d0
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
........

Merged revisions 370206 from http://svn.asterisk.org/svn/asterisk/branches/10

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