mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-06 01:45:11 +00:00
Memory leaking in calendars
ne_request_destroy() was missing in icalendar and exchange calendar modules, causing memory leak. (closes issue #18521) Review: https://reviewboard.asterisk.org/r/1068/ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@300214 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -403,6 +403,7 @@ static struct ast_str *exchangecal_request(struct exchangecal_pvt *pvt, const ch
|
||||
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));
|
||||
|
||||
Reference in New Issue
Block a user