Revision
15876
Author
anthm
Date
2009-12-10 15:04:33 -0600 (Thu, 10 Dec 2009)

Log Message

FSCORE-511

Modified Paths

Diff

Modified: freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c (15875 => 15876)


--- freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c	2009-12-10 20:51:13 UTC (rev 15875)
+++ freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c	2009-12-10 21:04:33 UTC (rev 15876)
@@ -610,7 +610,7 @@
 	vm_profile_t *profile = NULL;
 	switch_xml_t x_profiles, x_profile, cfg, xml, x_email, param;
 	switch_event_t *event = NULL;
-	switch_cache_db_handle_t *dbh;
+	switch_cache_db_handle_t *dbh = NULL;
 
 	if (!(xml = switch_xml_open_cfg(global_cf, &cfg, NULL))) {
 		switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Open of %s failed\n", global_cf);
@@ -707,7 +707,9 @@
 	}
 
   end:
+
 	switch_cache_db_release_db_handle(&dbh);
+
 	if (xml) {
 		switch_xml_free(xml);
 	}