diff options
Diffstat (limited to 'src/backend/access/index/genam.c')
-rw-r--r-- | src/backend/access/index/genam.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 60c61039d66..4b4ebff6a17 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -449,6 +449,8 @@ systable_beginscan(Relation heapRelation, snapshot, nkeys, 0); index_rescan(sysscan->iscan, idxkey, nkeys, NULL, 0); sysscan->scan = NULL; + + pfree(idxkey); } else { @@ -713,6 +715,8 @@ systable_beginscan_ordered(Relation heapRelation, index_rescan(sysscan->iscan, idxkey, nkeys, NULL, 0); sysscan->scan = NULL; + pfree(idxkey); + /* * If CheckXidAlive is set then set a flag to indicate that system table * scan is in-progress. See detailed comments in xact.c where these |