Index: apps/app_voicemail.c =================================================================== RCS file: /usr/cvsroot/asterisk/apps/app_voicemail.c,v retrieving revision 1.242 diff -u -r1.242 app_voicemail.c --- apps/app_voicemail.c 25 Aug 2005 03:15:18 -0000 1.242 +++ apps/app_voicemail.c 29 Aug 2005 06:16:36 -0000 @@ -1187,7 +1187,7 @@ snprintf(sql, sizeof(sql), "INSERT INTO %s (dir,msgnum,recording,context,macrocontext,callerid,origtime,duration,mailboxuser,mailboxcontext) VALUES (?,?,?,?,?,?,?,?,?,?)",odbc_table); #else snprintf(sql, sizeof(sql), "INSERT INTO %s (dir,msgnum,recording,context,macrocontext,callerid,origtime,duration) VALUES (?,?,?,?,?,?,?,?)",odbc_table); -#endif +#endif res = SQLPrepare(stmt, sql, SQL_NTS); if ((res != SQL_SUCCESS) && (res != SQL_SUCCESS_WITH_INFO)) { ast_log(LOG_WARNING, "SQL Prepare failed![%s]\n", sql); @@ -6134,6 +6134,7 @@ } } ast_mutex_unlock(&vmlock); + ast_config_destroy(cfg); return 0; } else { ast_mutex_unlock(&vmlock);