[Asterisk-code-review] AOC: Fix AOC-S json memory leak. (asterisk[13])
Jenkins2
asteriskteam at digium.com
Mon Nov 6 07:19:41 CST 2017
Jenkins2 has submitted this change and it was merged. ( https://gerrit.asterisk.org/6981 )
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
Jenkins2: Approved for Submit
diff --git a/main/aoc.c b/main/aoc.c
index ba151d7..d63fbdf 100644
--- a/main/aoc.c
+++ b/main/aoc.c
@@ -1714,7 +1714,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/6981
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: merged
Gerrit-Change-Id: I3a1d40a41a8a7d00fa4a187de6a343a79155d3ef
Gerrit-Change-Number: 6981
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/115c0a8b/attachment-0001.html>
More information about the asterisk-code-review
mailing list