[asterisk-bugs] [JIRA] (ASTERISK-29108) resource_endpoints.c : Memory leak if endpoint not found
Jean Aunis - Prescom (JIRA)
noreply at issues.asterisk.org
Mon Oct 5 10:43:36 CDT 2020
Jean Aunis - Prescom created ASTERISK-29108:
-----------------------------------------------
Summary: resource_endpoints.c : Memory leak if endpoint not found
Key: ASTERISK-29108
URL: https://issues.asterisk.org/jira/browse/ASTERISK-29108
Project: Asterisk
Issue Type: Bug
Security Level: None
Components: Resources/res_ari_endpoints
Affects Versions: 16.9.0
Reporter: Jean Aunis - Prescom
When using ARI to send a message to an endpoint, the HTTP response content is not properly freed if the endpoint does not exist.
I think the following block in resource_endpoints.c:212 is missing a return statement :
{code}
if (ast_msg_send(msg, to, from)) {
ast_ari_response_error(response, 404, "Not Found",
"Endpoint not found");
}
{code}
I will provide a patch.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list