diff options
author | Richard Mudgett <rmudgett@digium.com> | 2014-04-15 18:30:24 +0000 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2014-04-15 18:30:24 +0000 |
commit | ba1db5d8f536807415068810832ab2daed56f3bb (patch) | |
tree | 1e85d198b6973bb7d1e52fd72e9408ba0a95f320 /main/features_config.c | |
parent | 45ade68cb48baad5f4f994fae6fe52211f379f70 (diff) |
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
Diffstat (limited to 'main/features_config.c')
-rw-r--r-- | main/features_config.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/features_config.c b/main/features_config.c index d58886eec..ca0ee7781 100644 --- a/main/features_config.c +++ b/main/features_config.c @@ -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); } |