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

Joshua C. Colp (JIRA) noreply at issues.asterisk.org
Mon Oct 5 10:57:36 CDT 2020


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

Joshua C. Colp updated ASTERISK-29108:
--------------------------------------

    Status: Open  (was: Triage)

> 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
>            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