From a70a8596f49d97f7cfb191b19edf67617b68d594 Mon Sep 17 00:00:00 2001 From: TreeHunter <60896014+TreeHunter9@users.noreply.github.com> Date: Tue, 6 Aug 2024 16:07:32 +0300 Subject: [PATCH] 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 --- src/jrd/tra.cpp | 1 + src/jrd/tra.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/jrd/tra.cpp b/src/jrd/tra.cpp index fb9c42be38..3acd848976 100644 --- a/src/jrd/tra.cpp +++ b/src/jrd/tra.cpp @@ -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) diff --git a/src/jrd/tra.h b/src/jrd/tra.h index f3c630cba3..dea0202e96 100644 --- a/src/jrd/tra.h +++ b/src/jrd/tra.h @@ -198,6 +198,7 @@ public: 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) {