postgres.git / summary / log / commit / refs
commit 2d655a08d532feed356222a8b1e427561dc7a883
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: Sun Mar 20 21:10:24 2022 +0000
First released in: 15.0
Blind fix for uninitialized memory bug in ba9a7e392171
Valgrind animal skink shows a crash in this new code. I couldn't
reproduce the problem locally, but going by blind code inspection,
initializing insert_destrel should be sufficient to fix the problem.
src/backend/executor/nodeModifyTable.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/backend/executor/nodeModifyTable.c b/src/backend/executor/nodeModifyTable.c
index 5e4226abe26..701fe052967 100644
--- a/src/backend/executor/nodeModifyTable.c
+++ b/src/backend/executor/nodeModifyTable.c
@@ -1820,7 +1820,7 @@ lreplace:;
if (partition_constraint_failed)
{
TupleTableSlot *inserted_tuple;
- ResultRelInfo *insert_destrel;
+ ResultRelInfo *insert_destrel = NULL;
/*
* ExecCrossPartitionUpdate will first DELETE the row from the
[parent: a096813b6f58]