Eliminate some more unnecessary RAII_VAR() uses.

RAII_VAR() is not a hammer appropriate to pound all nails.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@412413 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Richard Mudgett
2014-04-15 18:27:23 +00:00
parent 51554c2927
commit 32cd970a21
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);
}