diff options
author | Richard Mudgett <rmudgett@digium.com> | 2017-11-02 11:38:23 -0500 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2017-11-03 12:58:38 -0500 |
commit | 79f326e5c41562ecb5708b36a5f1f861bd160daf (patch) | |
tree | 5c61316759209a8bf44b34dc72070588fec8872b /main/aoc.c | |
parent | 2551b5a4ba8e090a33397886447ab66c7a1248ec (diff) |
AOC: Fix AOC-S json memory leak.
Change-Id: I3a1d40a41a8a7d00fa4a187de6a343a79155d3ef
Diffstat (limited to 'main/aoc.c')
-rw-r--r-- | main/aoc.c | 2 |
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( |