Skip to content

Commit a70a859

Browse files
TreeHunter9Artyom Ivanov
and
Artyom Ivanov
authored
Add manual delete for tra_dbcreators_list (#8207)
* 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 <[email protected]>
1 parent 039c7e3 commit a70a859

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/jrd/tra.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3792,6 +3792,7 @@ jrd_tra::~jrd_tra()
37923792
delete tra_user_management;
37933793
delete tra_timezone_snapshot;
37943794
delete tra_mapping_list;
3795+
delete tra_dbcreators_list;
37953796
delete tra_gen_ids;
37963797

37973798
if (!tra_outer)

src/jrd/tra.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ class jrd_tra : public pool_alloc<type_tra>
198198
tra_user_management(NULL),
199199
tra_sec_db_context(NULL),
200200
tra_mapping_list(NULL),
201+
tra_dbcreators_list(nullptr),
201202
tra_autonomous_pool(NULL),
202203
tra_autonomous_cnt(0)
203204
{

0 commit comments

Comments
 (0)