Properly account for memory allocated for channels and datastores
authorKevin P. Fleming <kpfleming@digium.com>
Tue, 5 May 2009 10:34:19 +0000 (10:34 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Tue, 5 May 2009 10:34:19 +0000 (10:34 +0000)
commitec5116f80c7ed6922bdc483f11b220ebbee8618b
treed0b46bfb8216c1ae395bd39991084a219a5e0966
parentd8182202efdc2f292f64718cc038eee982850786
Properly account for memory allocated for channels and datastores

As in previous commits, when channels are allocated (with ast_channel_alloc) or datastores are allocated (with ast_datastore_alloc) properly account for the memory being owned by the caller, instead of the allocator function itself.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@192318 65c4cc65-6c06-0410-ace0-fbb531ad65f3
include/asterisk/astobj2.h
include/asterisk/channel.h
include/asterisk/datastore.h
main/astobj2.c
main/channel.c
main/datastore.c