From: Corey Farrell Date: Sat, 17 Oct 2015 03:01:36 +0000 (-0400) Subject: res_ari_events: Fix memory leak in mustache template. X-Git-Tag: 14.0.0-beta1~631 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b19860c03a1656fbf6409daf99b5fc98101e7134;p=thirdparty%2Fasterisk.git 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 --- 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();