Skip to content
Snippets Groups Projects
Commit 4bfeda6e authored by Mark Michelson's avatar Mark Michelson
Browse files

Free endpoint ACLs when destroying PJSIP endpoints.

If endpoint ACLs were specified, they were not being freed
when endpoints were destroyed. On systems with realtime endpoints, this
could add up quickly since each DB lookup would allocate the ACL without
freeing it.

ASTERISK-26731 #close
Reported by Ustinov Artem

Change-Id: Ie1f8bf5b7a0de628c975beba01e69c56893331ad
parent 2481a55f
Branches
Tags
No related merge requests found
......@@ -2069,6 +2069,8 @@ static void endpoint_destructor(void* obj)
ast_variables_destroy(endpoint->channel_vars);
AST_VECTOR_FREE(&endpoint->ident_method_order);
ast_free(endpoint->contact_user);
ast_free_acl_list(endpoint->contact_acl);
ast_free_acl_list(endpoint->acl);
}
static int init_subscription_configuration(struct ast_sip_endpoint_subscription_configuration *subscription)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment