From f5295b7483b1c4b411057ef211ba19edd53d39c2 Mon Sep 17 00:00:00 2001 From: Mathieu Rene Date: Wed, 28 Oct 2009 21:32:20 +0000 Subject: [PATCH] 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 --- src/mod/applications/mod_voicemail/mod_voicemail.c | 3 +++ 1 file changed, 3 insertions(+) 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; }