summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2017-11-06 07:42:57 -0600
committerGerrit Code Review <gerrit2@gerrit.digium.api>2017-11-06 07:42:57 -0600
commit883005c163911d80c295c6e436e85f58e94a7bfd (patch)
treeb38c2d1845c1b2b1b3430d440acca46e3e467a4a /main
parent28b3ce7d3f7d3488eea091742fcc4e847e4865aa (diff)
parent79f326e5c41562ecb5708b36a5f1f861bd160daf (diff)
Merge "AOC: Fix AOC-S json memory leak." into 15
Diffstat (limited to 'main')
-rw-r--r--main/aoc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/aoc.c b/main/aoc.c
index d4b74ec92..451b21973 100644
--- a/main/aoc.c
+++ b/main/aoc.c
@@ -1713,7 +1713,7 @@ static struct ast_json *s_to_json(const struct ast_aoc_decoded *decoded)
}
for (i = 0; i < decoded->aoc_s_count; ++i) {
- struct ast_json *rate = ast_json_object_create();
+ struct ast_json *rate;
RAII_VAR(struct ast_json *, type, NULL, ast_json_unref);
RAII_VAR(struct ast_json *, currency, NULL, ast_json_unref);
const char *charge_item = aoc_charged_item_str(