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

Better lock scope.

This commit is contained in:
dimitr 2008-02-27 12:03:05 +00:00
parent dd88f69c4c
commit c49845e8c4

View File

@ -1163,12 +1163,14 @@ static void cleanup(void* arg)
gds__free(UDSQL_error);
UDSQL_error = NULL;
Firebird::WriteLockGuard guard(global_sync);
{ // scope
Firebird::WriteLockGuard guard(global_sync);
free_all_databases(databases);
free_all_statements(statements);
free_all_names(statement_names);
free_all_names(cursor_names);
free_all_databases(databases);
free_all_statements(statements);
free_all_names(statement_names);
free_all_names(cursor_names);
}
gds__unregister_cleanup(cleanup, 0);
}