Content-Length: 259469 | pFad | http://github.com/postgrespro/postgres/commit/2d655a08d532feed356222a8b1e427561dc7a883

DA Blind fix for uninitialized memory bug in ba9a7e392171 · postgrespro/postgres@2d655a0 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/2d655a08d532feed356222a8b1e427561dc7a883

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy