Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 3308467

Browse files
committed
Zeroing unused parts ducring tsquery construction.
Per investigation failure skink buildfarm member and RANDOMIZE_ALLOCATED_MEMORY help
1 parent f338dd7 commit 3308467

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/backend/utils/adt/tsquery_cleanup.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,8 @@ makeNODE(int8 op, NODE *left, NODE *right)
347347
{
348348
NODE *node = palloc(sizeof(NODE));
349349

350-
node->valnode = palloc(sizeof(QueryItem));
350+
/* zeroing allocation to prevent difference in unused bytes */
351+
node->valnode = palloc0(sizeof(QueryItem));
351352

352353
node->valnode->qoperator.type = QI_OPR;
353354
node->valnode->qoperator.oper = op;

0 commit comments

Comments
 (0)