]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Oops, forgot to release the odbc handle
authorTilghman Lesher <tilghman@meg.abyt.es>
Tue, 5 Dec 2006 01:41:02 +0000 (01:41 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Tue, 5 Dec 2006 01:41:02 +0000 (01:41 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48254 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index b9c478e8d34969db6c15859f2cef2f4377871e9a..d24ec2a67c678ca557bdf58ddc6a2d5d5264664f 100644 (file)
@@ -1115,6 +1115,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;
                                                        }
                                                }