From: Mathieu Rene Date: Wed, 28 Oct 2009 21:32:20 +0000 (+0000) Subject: mod_voicemail: add missing switch_event_destroy in profile config function X-Git-Tag: v1.0.6~1579 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5295b7483b1c4b411057ef211ba19edd53d39c2;p=thirdparty%2Ffreeswitch.git mod_voicemail: add missing switch_event_destroy in profile config function git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15262 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/applications/mod_voicemail/mod_voicemail.c b/src/mod/applications/mod_voicemail/mod_voicemail.c index fe3797491c..76f855ef68 100644 --- a/src/mod/applications/mod_voicemail/mod_voicemail.c +++ b/src/mod/applications/mod_voicemail/mod_voicemail.c @@ -779,6 +779,9 @@ static vm_profile_t * load_profile(const char *profile_name) if (xml) { switch_xml_free(xml); } + if (event) { + switch_event_destroy(&event); + } return profile; }