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

Richard Mudgett asteriskteam at digium.com
Fri Nov 3 12:58:38 CDT 2017


Richard Mudgett has uploaded this change for review. ( https://gerrit.asterisk.org/6982


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(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/82/6982/1

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/6982
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 15
Gerrit-MessageType: newchange
Gerrit-Change-Id: I3a1d40a41a8a7d00fa4a187de6a343a79155d3ef
Gerrit-Change-Number: 6982
Gerrit-PatchSet: 1
Gerrit-Owner: Richard Mudgett <rmudgett at digium.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20171103/8b709f91/attachment.html>


More information about the asterisk-code-review mailing list