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:
Richard Mudgett
2014-04-15 18:30:24 +00:00
parent 45ade68cb4
commit ba1db5d8f5
4 changed files with 14 additions and 19 deletions

View File

@@ -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);
}