mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-20 16:50:14 +00:00
Asterisk crashing because of double free when EWS request fails
The free is done later in code. I think ast_free() should have built in checks for double free. (closes issue #17782) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@287270 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -528,7 +528,6 @@ static int send_ews_request_and_parse(struct ast_str *request, struct xml_contex
|
||||
if (ret != NE_OK) { /* Error handling */
|
||||
ast_log(LOG_WARNING, "Unable to communicate with Exchange Web Service at '%s': %s\n", ctx->pvt->url, ne_get_error(ctx->pvt->session));
|
||||
ne_request_destroy(req);
|
||||
ast_free(request);
|
||||
ne_xml_destroy(parser);
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user