mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 11:25:35 +00:00
Eliminate some more unnecessary RAII_VAR() uses.
RAII_VAR() is not a hammer appropriate to pound all nails. ........ Merged revisions 412413 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@412414 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1081,7 +1081,8 @@ static struct ast_datastore *get_feature_chan_ds(struct ast_channel *chan)
|
||||
|
||||
if (!(ds = ast_channel_datastore_find(chan, &feature_ds_info, NULL))) {
|
||||
/* Hasn't been created yet. Trigger creation. */
|
||||
RAII_VAR(struct features_config *, cfg, get_feature_ds(chan), ao2_cleanup);
|
||||
ao2_cleanup(get_feature_ds(chan));
|
||||
|
||||
ds = ast_channel_datastore_find(chan, &feature_ds_info, NULL);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user