[Asterisk-code-review] AOC: Fix AOC-S json memory leak. (asterisk[master])

Joshua Colp asteriskteam at digium.com
Mon Nov 6 07:51:36 CST 2017


Joshua Colp has submitted this change and it was merged. ( https://gerrit.asterisk.org/6983 )

Change subject: AOC: Fix AOC-S json memory leak.
......................................................................

AOC: Fix AOC-S json memory leak.

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

Approvals:
  Corey Farrell: Looks good to me, but someone else must approve
  Sean Bright: Looks good to me, but someone else must approve
  Joshua Colp: Looks good to me, approved; Approved for Submit



diff --git a/main/aoc.c b/main/aoc.c
index d4b74ec..451b219 100644
--- a/main/aoc.c
+++ b/main/aoc.c
@@ -1713,7 +1713,7 @@
 	}
 
 	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(

-- 
To view, visit https://gerrit.asterisk.org/6983
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I3a1d40a41a8a7d00fa4a187de6a343a79155d3ef
Gerrit-Change-Number: 6983
Gerrit-PatchSet: 1
Gerrit-Owner: Richard Mudgett <rmudgett at digium.com>
Gerrit-Reviewer: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: Jenkins2
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Sean Bright <sean.bright at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20171106/9e6a1dd2/attachment-0001.html>


More information about the asterisk-code-review mailing list