fix mem leak (bug #2940)
authorRussell Bryant <russell@russellbryant.com>
Thu, 25 Nov 2004 06:13:29 +0000 (06:13 +0000)
committerRussell Bryant <russell@russellbryant.com>
Thu, 25 Nov 2004 06:13:29 +0000 (06:13 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4333 65c4cc65-6c06-0410-ace0-fbb531ad65f3

cdr/cdr_odbc.c

index 3fb4b2c..c28a329 100755 (executable)
@@ -161,6 +161,7 @@ static int odbc_log(struct ast_cdr *cdr)
                if (option_verbose > 10)
                        ast_verbose( VERBOSE_PREFIX_4 "cdr_odbc: Query FAILED Call not logged!\n");
        }
+       SQLFreeHandle(SQL_HANDLE_STMT, ODBC_stmt);
        ast_mutex_unlock(&odbc_lock);
        return 0;
 }