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:
parent
dd88f69c4c
commit
c49845e8c4
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user