8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 10:43:03 +01:00

Fixed the AV reported by Dmitry Kovalenko in fb-devel.

This commit is contained in:
dimitr 2008-03-12 08:08:33 +00:00
parent 016ef930a1
commit bd6f9a72bf

View File

@ -152,7 +152,7 @@ inline void bad_handle(ISC_STATUS code)
inline void nullCheck(const FB_API_HANDLE* ptr, ISC_STATUS code)
{
// this function is called for incoming API handlers,
// this function is called for incoming API handles,
// proposed to be created by the call
if ((!ptr) || (*ptr))
{
@ -1686,9 +1686,9 @@ ISC_STATUS API_ROUTINE GDS_COMPILE(ISC_STATUS* user_status,
}
catch (const Firebird::Exception& e)
{
*req_handle = 0;
if (dbb && rq)
{
*req_handle = 0;
CALL(PROC_RELEASE_REQUEST, dbb->implementation) (status, rq);
}
e.stuff_exception(status);
@ -2255,9 +2255,9 @@ ISC_STATUS API_ROUTINE GDS_DSQL_ALLOCATE(ISC_STATUS * user_status,
}
catch (const Firebird::Exception& e)
{
*public_stmt_handle = 0;
if (dbb && stmt_handle)
{
*public_stmt_handle = 0;
CALL(PROC_DSQL_FREE, dbb->implementation) (status, &stmt_handle, DSQL_drop);
}
e.stuff_exception(status);