HashGroupingOperator has been updated to close inbound pages. Ordinals needs to do similar.
x-pack/plugin/esql/compute/src/main/java/org/elasticsearch/compute/operator/OrdinalsGroupingOperator.java
final OrdinalSegmentAggregator ordinalAggregator = this.ordinalAggregators.computeIfAbsent(
                new SegmentID(shardIndex, segmentIndexVector.getInt(0)),
                k -> {
                    final List<GroupingAggregator> groupingAggregators = createGroupingAggregators();
                    boolean success = false;
                    try {
                        final LeafReaderContext leafReaderContext = source.reader().leaves().get(k.segmentIndex);
                        final OrdinalSegmentAggregator ordinalSegmentAggregator = new OrdinalSegmentAggregator(
                            groupingAggregators,
                            withOrdinals,
                            leafReaderContext,
                            bigArrays
                        );
                        success = true;
                        return ordinalSegmentAggregator;
                    } catch (IOException e) {
                        throw new UncheckedIOException(e);
                    } finally {
                        if (success == false) {
                            Releasables.close(groupingAggregators);
                        }
                    }
                }
            );
            ordinalAggregator.addInput(docVector.docs(), page);
        } else {
            if (valuesAggregator == null) {
                int channelIndex = page.getBlockCount(); 
                valuesAggregator = new ValuesAggregator(
                    sources,