]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_voicemail: add missing switch_event_destroy in profile config function
authorMathieu Rene <mrene@avgs.ca>
Wed, 28 Oct 2009 21:32:20 +0000 (21:32 +0000)
committerMathieu Rene <mrene@avgs.ca>
Wed, 28 Oct 2009 21:32:20 +0000 (21:32 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15262 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_voicemail/mod_voicemail.c

index fe3797491c038531cca404eb6f00092455a18276..76f855ef687beeb3a11a2f128c236a35a9617526 100644 (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;
 
 }