(closes issue #13297)
Reported by: snuffy
Patches:
bug13297_20080814.diff uploaded by snuffy (license 35)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@137456
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
struct ast_datastore *store = ast_channel_datastore_find(chan, &ast_chan_trace_datastore_info, NULL);
struct ast_chan_trace_data *traced;
if (!store) {
- store = ast_channel_datastore_alloc(&ast_chan_trace_datastore_info, "ChanTrace");
+ store = ast_datastore_alloc(&ast_chan_trace_datastore_info, "ChanTrace");
if (!store)
return -1;
traced = ast_calloc(1, sizeof(*traced));
if (!traced) {
- ast_channel_datastore_free(store);
+ ast_datastore_free(store);
return -1;
}
store->data = traced;