asterisk/main
Kevin P. Fleming 4a4189b085 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
2012-07-18 19:18:40 +00:00
..
editline Fix a variety of memory leaks 2012-05-18 14:43:44 +00:00
stdtime Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
Makefile Multiple revisions 369323-369324 2012-06-25 15:55:25 +00:00
abstract_jb.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
acl.c Named ACLs: Introduces a system for creating and sharing ACLs 2012-07-11 18:33:36 +00:00
adsi.c Fix crash in unloading of res_adsi module 2012-06-26 13:23:12 +00:00
alaw.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
aoc.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
app.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
ast_expr2.c Allow the REALTIME() function to report errors back to the caller. 2012-07-11 17:16:50 +00:00
ast_expr2.fl Avoid cppcheck warnings; removing unused vars and a bit of cleanup. 2012-04-17 18:57:40 +00:00
ast_expr2.h Allow the REALTIME() function to report errors back to the caller. 2012-07-11 17:16:50 +00:00
ast_expr2.y Multiple revisions 360356-360357 2012-03-24 02:42:42 +00:00
ast_expr2f.c Allow the REALTIME() function to report errors back to the caller. 2012-07-11 17:16:50 +00:00
asterisk.c Named ACLs: Introduces a system for creating and sharing ACLs 2012-07-11 18:33:36 +00:00
asterisk.dynamics Remove the old stub files, preferring the optional_api method. 2010-07-14 20:48:59 +00:00
asterisk.exports.in Add new config-parsing framework 2012-06-01 16:33:25 +00:00
astfd.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
astmm.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
astobj2.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
audiohook.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
autochan.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
autoservice.c Hangup handlers - Dialplan subroutines that run when the channel hangs up. 2012-06-29 17:02:32 +00:00
bridging.c Fix bridging thread leak. 2012-07-06 15:31:52 +00:00
buildinfo.c fix a few small things found by using sparse 2008-10-30 16:49:02 +00:00
callerid.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
ccss.c Ensure that all ast_datastore_info structures are 'const'. 2012-07-18 17:18:20 +00:00
cdr.c Fix validation errors when producing documentation using default build script 2012-07-11 02:06:05 +00:00
cel.c Resolve severe memory leak in CEL logging modules. 2012-07-18 19:18:40 +00:00
channel.c Ensure that all ast_datastore_info structures are 'const'. 2012-07-18 17:18:20 +00:00
channel_internal_api.c Hangup handlers - Dialplan subroutines that run when the channel hangs up. 2012-06-29 17:02:32 +00:00
chanvars.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
cli.c Unique Call ID logging Phases III and IV 2012-06-26 21:45:22 +00:00
config.c Named ACLs: Introduces a system for creating and sharing ACLs 2012-07-11 18:33:36 +00:00
config_options.c Handle deprecated (aliased) option names with the config options api 2012-07-12 21:43:09 +00:00
cygload.c Kill off red blobs in most of main/* 2012-03-22 19:51:16 +00:00
data.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
datastore.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
db.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
devicestate.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
dial.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
dns.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
dnsmgr.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
dsp.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
ecdisa.h Kill off red blobs in most of main/* 2012-03-22 19:51:16 +00:00
enum.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
event.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
features.c Don't perform an XInclude to a document node that may not always be present 2012-07-11 17:14:45 +00:00
file.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
fixedjitterbuf.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
fixedjitterbuf.h Kill off red blobs in most of main/* 2012-03-22 19:51:16 +00:00
format.c Add support for parsing SDP attributes, generating SDP attributes, and passing it through. 2012-07-13 16:49:40 +00:00
format_cap.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
format_pref.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
frame.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
framehook.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
fskmodem.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
fskmodem_float.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
fskmodem_int.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
global_datastores.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
hashtab.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
heap.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
http.c Fix crash caused by unloading or reloading of res_http_post 2012-04-10 19:58:04 +00:00
image.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
indications.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
io.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
jitterbuf.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
libasteriskssl.c Fix initial loading problem with res_curl 2012-07-10 13:34:15 +00:00
libasteriskssl.exports.in Address OpenSSL initialization issues when using third-party libraries. 2012-01-30 21:21:16 +00:00
loader.c Named ACLs: Introduces a system for creating and sharing ACLs 2012-07-11 18:33:36 +00:00
lock.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
logger.c Fix validation errors when producing documentation using default build script 2012-07-11 02:06:05 +00:00
manager.c Named ACLs: Introduces a system for creating and sharing ACLs 2012-07-11 18:33:36 +00:00
md5.c md5: supress some compiler warnings. 2012-04-28 01:33:49 +00:00
message.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
named_acl.c Named ACLs: Introduces a system for creating and sharing ACLs 2012-07-11 18:33:36 +00:00
netsock.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
netsock2.c Fix NULL pointer segfault in ast_sockaddr_parse() 2012-06-20 02:07:00 +00:00
pbx.c Ensure that all ast_datastore_info structures are 'const'. 2012-07-18 17:18:20 +00:00
plc.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
poll.c Merged revisions 285268 via svnmerge from 2010-09-07 19:09:08 +00:00
presencestate.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
privacy.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
rtp_engine.c Add support for ICE/STUN/TURN in res_rtp_asterisk and chan_sip. 2012-07-01 17:28:57 +00:00
say.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
sched.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
security_events.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
sha1.c Kill off red blobs in most of main/* 2012-03-22 19:51:16 +00:00
slinfactory.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
srv.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
strcompat.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
strings.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
stun.c When receiving a STUN binding request send one out as the Google Talk client uses this as a method to determine if the remote party is still reachable or not. 2012-07-09 22:38:25 +00:00
syslog.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
taskprocessor.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
tcptls.c Remove a superfluous and dangerous freeing of an SSL_CTX. 2012-07-06 18:49:17 +00:00
tdd.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
term.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
test.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
threadstorage.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
timing.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
translate.c Add support for parsing SDP attributes, generating SDP attributes, and passing it through. 2012-07-13 16:49:40 +00:00
udptl.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
ulaw.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
utils.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
xml.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
xmldoc.c Add AMI event documentation 2012-06-25 17:59:34 +00:00