summaryrefslogtreecommitdiff
path: root/main/features_config.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/features_config.c')
-rw-r--r--main/features_config.c3
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);
}