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
This commit is contained in:
Mathieu Rene 2009-10-28 21:32:20 +00:00
parent 7e1ca7a9f2
commit f5295b7483
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}