[Asterisk-code-review] res ari events: Fix memory leak in mustache template. (asterisk[master])

Corey Farrell asteriskteam at digium.com
Fri Oct 16 22:17:48 CDT 2015


Corey Farrell has uploaded a new change for review.

  https://gerrit.asterisk.org/1446

Change subject: res_ari_events: Fix memory leak in mustache template.
......................................................................

res_ari_events: Fix memory leak in mustache template.

ASTERISK-25308 fixed a memory leak in res_ari_events.c, but
this file is regenerated by a template and the template was
not fixed.

Change-Id: Ied4c6deae89d21f87f9cf99676b1d055aa83b38b
---
M rest-api-templates/res_ari_resource.c.mustache
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/46/1446/1

diff --git a/rest-api-templates/res_ari_resource.c.mustache b/rest-api-templates/res_ari_resource.c.mustache
index 36ca035..23f2a52 100644
--- a/rest-api-templates/res_ari_resource.c.mustache
+++ b/rest-api-templates/res_ari_resource.c.mustache
@@ -291,6 +291,7 @@
 {{#has_websocket}}
 	ao2_cleanup({{full_name}}.ws_server);
 	{{full_name}}.ws_server = NULL;
+	ast_ari_websocket_events_event_websocket_dtor();
 {{/has_websocket}}
 {{/apis}}
 	stasis_app_unref();

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ied4c6deae89d21f87f9cf99676b1d055aa83b38b
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Owner: Corey Farrell <git at cfware.com>



More information about the asterisk-code-review mailing list