Skip to content

Commit 201e31b

Browse files
author
Alexander Korotkov
committed
SortState leak.
1 parent 183b747 commit 201e31b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

rumscan.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,9 @@ rumrescan(IndexScanDesc scan, ScanKey scankey, int nscankeys,
475475
memmove(scan->orderByData, orderbys,
476476
scan->numberOfOrderBys * sizeof(ScanKeyData));
477477
}
478+
479+
if (so->sortstate)
480+
rum_tuplesort_end(so->sortstate);
478481
}
479482

480483
void

0 commit comments

Comments
 (0)