Skip to content

Commit

Permalink
Add manual delete for tra_dbcreators_list (#8207)
Browse files Browse the repository at this point in the history
* Delete tra_dbcreators_list in ~jrd_tra

If we don't delete it manually assert will be thrown if SEC$DB_CREATORS returns a lot of records

* Add missing default initialization for tra_dbcreators_list

---------

Co-authored-by: Artyom Ivanov <artyom.ivanov@red-soft.ru>
  • Loading branch information
TreeHunter9 and Artyom Ivanov authored Aug 6, 2024
1 parent 039c7e3 commit a70a859
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/jrd/tra.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3792,6 +3792,7 @@ jrd_tra::~jrd_tra()
delete tra_user_management;
delete tra_timezone_snapshot;
delete tra_mapping_list;
delete tra_dbcreators_list;
delete tra_gen_ids;

if (!tra_outer)
Expand Down
1 change: 1 addition & 0 deletions src/jrd/tra.h
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ class jrd_tra : public pool_alloc<type_tra>
tra_user_management(NULL),
tra_sec_db_context(NULL),
tra_mapping_list(NULL),
tra_dbcreators_list(nullptr),
tra_autonomous_pool(NULL),
tra_autonomous_cnt(0)
{
Expand Down

0 comments on commit a70a859

Please sign in to comment.