summaryrefslogtreecommitdiff
path: root/res/res_calendar_exchange.c
diff options
context:
space:
mode:
authorJan Kalab <pitlicek@gmail.com>2011-01-04 17:04:14 +0000
committerJan Kalab <pitlicek@gmail.com>2011-01-04 17:04:14 +0000
commit706dd687f2c0e5429f4f2873909aabbb2429f8e8 (patch)
treec18d4fd142755dc1bc9c9f94db7b18efafbcd982 /res/res_calendar_exchange.c
parent90177fe708cf2068b6b29f99f708760eb2859066 (diff)
Merged revisions 300214 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8 ........ r300214 | pitel | 2011-01-04 18:01:52 +0100 (Út, 04 led 2011) | 7 lines 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/trunk@300215 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_calendar_exchange.c')
-rw-r--r--res/res_calendar_exchange.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/res/res_calendar_exchange.c b/res/res_calendar_exchange.c
index 8f3989c5d..2238124db 100644
--- a/res/res_calendar_exchange.c
+++ b/res/res_calendar_exchange.c
@@ -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));