From 229790ea3dab91e52a28daa392ec0fc2c550b4c6 Mon Sep 17 00:00:00 2001
From: Richard Mudgett <rmudgett@digium.com>
Date: Thu, 2 Nov 2017 11:38:23 -0500
Subject: [PATCH] AOC: Fix AOC-S json memory leak.

Change-Id: I3a1d40a41a8a7d00fa4a187de6a343a79155d3ef
---
 main/aoc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/main/aoc.c b/main/aoc.c
index d4b74ec921..451b219730 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(
-- 
GitLab