summaryrefslogtreecommitdiff
path: root/rest-api-templates
diff options
context:
space:
mode:
authorCorey Farrell <git@cfware.com>2015-10-16 23:01:36 -0400
committerCorey Farrell <git@cfware.com>2015-10-16 23:01:36 -0400
commitb19860c03a1656fbf6409daf99b5fc98101e7134 (patch)
treedd97995c0456fbd05a8d3d69422fa195bbb04b31 /rest-api-templates
parent2581e460e3dee3240cc218b54b9a24ee151a4106 (diff)
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
Diffstat (limited to 'rest-api-templates')
-rw-r--r--rest-api-templates/res_ari_resource.c.mustache1
1 files changed, 1 insertions, 0 deletions
diff --git a/rest-api-templates/res_ari_resource.c.mustache b/rest-api-templates/res_ari_resource.c.mustache
index 36ca035ee..23f2a52ac 100644
--- a/rest-api-templates/res_ari_resource.c.mustache
+++ b/rest-api-templates/res_ari_resource.c.mustache
@@ -291,6 +291,7 @@ static int unload_module(void)
{{#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();