[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 05:06:36 CDT 2020


    [ https://issues.asterisk.org/jira/browse/ASTERISK-29108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=252362#comment-252362 ] 

Friendly Automation commented on ASTERISK-29108:
------------------------------------------------

Change 15039 merged by Joshua Colp:
resource_endpoints.c: memory leak when providing a 404 response

[https://gerrit.asterisk.org/c/asterisk/+/15039|https://gerrit.asterisk.org/c/asterisk/+/15039]

> 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