[asterisk-bugs] [JIRA] (ASTERISK-29108) resource_endpoints.c : Memory leak if endpoint not found

Asterisk Team (JIRA) noreply at issues.asterisk.org
Thu Nov 12 06:52:16 CST 2020


     [ https://issues.asterisk.org/jira/browse/ASTERISK-29108?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Asterisk Team updated ASTERISK-29108:
-------------------------------------

    Target Release Version/s: 13.38.0

> 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
>      Target Release: 13.38.0
>
>
> 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