Fix memory leak in res_calendar_icalendar
authorMatthew Jordan <mjordan@digium.com>
Wed, 30 Jan 2013 14:19:29 +0000 (14:19 +0000)
committerMatthew Jordan <mjordan@digium.com>
Wed, 30 Jan 2013 14:19:29 +0000 (14:19 +0000)
commit0728c6d7ae603c72b160810ac495783739cee53a
treea6e9599d3f210a13d448d3816bc9cfbc7c51407d
parent693d609081031d17e57cc2b3ad7408947120dc48
Fix memory leak in res_calendar_icalendar

The ICalendar module had a systemic memory leak on each fetch of data from
the ICalendar source. The previous fetched data was not being properly
disposed. This patch makes it so that before each fetch of data, we dispose
of the previously fetched data.

(closes issue ASTERISK-21012)
Reported by: Joel Vandal
Tested by: Joel Vandal
........

Merged revisions 380451 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 380452 from http://svn.asterisk.org/svn/asterisk/branches/11

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@380460 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_calendar_icalendar.c