From b19860c03a1656fbf6409daf99b5fc98101e7134 Mon Sep 17 00:00:00 2001 From: Corey Farrell <git@cfware.com> Date: Fri, 16 Oct 2015 23:01:36 -0400 Subject: [PATCH] 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 --- rest-api-templates/res_ari_resource.c.mustache | 1 + 1 file changed, 1 insertion(+) diff --git a/rest-api-templates/res_ari_resource.c.mustache b/rest-api-templates/res_ari_resource.c.mustache index 36ca035ee5..23f2a52ac2 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(); -- GitLab