Skip to content
Snippets Groups Projects
Commit 229790ea authored by Richard Mudgett's avatar Richard Mudgett
Browse files

AOC: Fix AOC-S json memory leak.

Change-Id: I3a1d40a41a8a7d00fa4a187de6a343a79155d3ef
parent 325b5dd3
No related branches found
No related tags found
No related merge requests found
......@@ -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(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment