Skip to content

Commit 2d655a0

Browse files
committed
Blind fix for uninitialized memory bug in ba9a7e3
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.
1 parent a096813 commit 2d655a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/executor/nodeModifyTable.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1820,7 +1820,7 @@ lreplace:;
18201820
if (partition_constraint_failed)
18211821
{
18221822
TupleTableSlot *inserted_tuple;
1823-
ResultRelInfo *insert_destrel;
1823+
ResultRelInfo *insert_destrel = NULL;
18241824

18251825
/*
18261826
* ExecCrossPartitionUpdate will first DELETE the row from the

0 commit comments

Comments
 (0)