Merged revisions 48254 via svnmerge from
authorTilghman Lesher <tilghman@meg.abyt.es>
Tue, 5 Dec 2006 01:46:14 +0000 (01:46 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Tue, 5 Dec 2006 01:46:14 +0000 (01:46 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48254 | tilghman | 2006-12-04 19:41:02 -0600 (Mon, 04 Dec 2006) | 2 lines

Oops, forgot to release the odbc handle

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48255 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index bd39aba..73f4705 100644 (file)
@@ -1126,6 +1126,7 @@ static int retrieve_file(char *dir, int msgnum)
                                                                ast_log(LOG_WARNING, "SQL Get Data error!\n[%s]\n\n", sql);
                                                                unlink(full_fn);
                                                                SQLFreeHandle(SQL_HANDLE_STMT, stmt);
+                                                               ast_odbc_release_obj(obj);
                                                                goto yuck;
                                                        }
                                                }