mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-04 20:25:29 +00:00
Merge "AOC: Fix AOC-S json memory leak." into 13
This commit is contained in:
@@ -1714,7 +1714,7 @@ static struct ast_json *s_to_json(const struct ast_aoc_decoded *decoded)
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < decoded->aoc_s_count; ++i) {
|
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 *, type, NULL, ast_json_unref);
|
||||||
RAII_VAR(struct ast_json *, currency, NULL, ast_json_unref);
|
RAII_VAR(struct ast_json *, currency, NULL, ast_json_unref);
|
||||||
const char *charge_item = aoc_charged_item_str(
|
const char *charge_item = aoc_charged_item_str(
|
||||||
|
Reference in New Issue
Block a user