Skip to content

Commit

Permalink
Fix memory leak for compression with merge chunks
Browse files Browse the repository at this point in the history
The RelationInitIndexAccessInfo call leaks cache memory and
seems to be unnecessary.
  • Loading branch information
cevian authored and jnidzwetzki committed Dec 13, 2022
1 parent 13ac2fc commit df16815
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion tsl/src/compression/compression.c
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,6 @@ index_scan_sequence_number(Relation table_rel, Oid index_oid, ScanKeyData *scank
int32 result = 0;
bool is_null;
Relation index_rel = index_open(index_oid, AccessShareLock);
RelationInitIndexAccessInfo(index_rel);

IndexScanDesc index_scan =
index_beginscan(table_rel, index_rel, GetTransactionSnapshot(), num_scankeys, 0);
Expand Down

0 comments on commit df16815

Please sign in to comment.