From: Jan Kalab Date: Fri, 17 Sep 2010 08:42:37 +0000 (+0000) Subject: Asterisk crashing because of double free when EWS request fails X-Git-Tag: 1.8.0-rc1~3^2~33 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=80ed88e5faf01941e3da1c12ef67f100e114fe06;p=thirdparty%2Fasterisk.git 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 --- diff --git a/res/res_calendar_ews.c b/res/res_calendar_ews.c index 4932423055..27a4bf9f6e 100644 --- a/res/res_calendar_ews.c +++ b/res/res_calendar_ews.c @@ -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; }