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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy