File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -176,6 +176,9 @@ get_grouped_exprs_hash(int child_fss, List *group_exprs)
176
176
177
177
final_hashes [0 ] = child_fss ;
178
178
final_hashes [1 ] = get_int_array_hash (hashes , i );
179
+
180
+ pfree (hashes );
181
+
179
182
return get_int_array_hash (final_hashes , 2 );
180
183
}
181
184
@@ -475,6 +478,7 @@ get_relations_hash(List *relsigns)
475
478
int nhashes = 0 ;
476
479
int64 * hashes = palloc (list_length (relsigns ) * sizeof (uint64 ));
477
480
ListCell * lc ;
481
+ int64 result ;
478
482
479
483
foreach (lc , relsigns )
480
484
{
@@ -485,8 +489,12 @@ get_relations_hash(List *relsigns)
485
489
qsort (hashes , nhashes , sizeof (int64 ), int64_compare );
486
490
487
491
/* Make a final hash value */
488
- return DatumGetInt64 (hash_any_extended ((const unsigned char * ) hashes ,
492
+
493
+ result = DatumGetInt64 (hash_any_extended ((const unsigned char * ) hashes ,
489
494
nhashes * sizeof (int64 ), 0 ));
495
+
496
+ pfree (hashes );
497
+ return result ;
490
498
}
491
499
492
500
/*
You can’t perform that action at this time.
0 commit comments