[asterisk-bugs] [JIRA] (ASTERISK-29108) resource_endpoints.c : Memory leak if endpoint not found
Friendly Automation (JIRA)
noreply at issues.asterisk.org
Thu Oct 8 04:52:36 CDT 2020
[ https://issues.asterisk.org/jira/browse/ASTERISK-29108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=252358#comment-252358 ]
Friendly Automation commented on ASTERISK-29108:
------------------------------------------------
Change 15042 merged by Friendly Automation:
resource_endpoints.c: memory leak when providing a 404 response
[https://gerrit.asterisk.org/c/asterisk/+/15042|https://gerrit.asterisk.org/c/asterisk/+/15042]
> 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
> Assignee: Jean Aunis - Prescom
> Severity: Minor
>
> 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