From 8f3533aad4cca913cb208f15223f2cf1cf873de4 Mon Sep 17 00:00:00 2001 From: ZenoWang Date: Thu, 2 Mar 2023 15:36:25 +0000 Subject: [PATCH] [FIX] fix read tx data undo action core --- src/storage/tx_table/ob_tx_data_table.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/storage/tx_table/ob_tx_data_table.cpp b/src/storage/tx_table/ob_tx_data_table.cpp index c1856f7008..9c2b10ecd4 100644 --- a/src/storage/tx_table/ob_tx_data_table.cpp +++ b/src/storage/tx_table/ob_tx_data_table.cpp @@ -310,6 +310,8 @@ int ObTxDataTable::deep_copy_undo_status_list_(const ObUndoStatusList &in_list, STORAGE_LOG(WARN, "alloc undo status node failed.", KR(ret)); } else { *new_node = *cur_in_node; + // reset next pointer to avoid invalid free + new_node->next_ = nullptr; if (nullptr == pre_node) { out_list.head_ = new_node; } else {