Index: res/res_calendar_exchange.c =================================================================== --- res/res_calendar_exchange.c (revision 300211) +++ res/res_calendar_exchange.c (working copy) @@ -403,6 +403,7 @@ ne_add_request_header(req, "Content-type", "text/xml"); ret = ne_request_dispatch(req); + ne_request_destroy(req); if (ret != NE_OK || !ast_str_strlen(response)) { ast_log(LOG_WARNING, "Unknown response to CalDAV calendar %s, request %s to %s: %s\n", pvt->owner->name, method, pvt->url, ne_get_error(pvt->session)); Index: res/res_calendar_icalendar.c =================================================================== --- res/res_calendar_icalendar.c (revision 300211) +++ res/res_calendar_icalendar.c (working copy) @@ -142,6 +142,7 @@ ne_add_response_body_reader(req, ne_accept_2xx, fetch_response_reader, &response); ret = ne_request_dispatch(req); + ne_request_destroy(req); if (ret != NE_OK || !ast_str_strlen(response)) { ast_log(LOG_WARNING, "Unable to retrieve iCalendar '%s' from '%s': %s\n", pvt->owner->name, pvt->url, ne_get_error(pvt->session)); ast_free(response);