Skip to content

Commit

Permalink
Fix leak with RapidsHostColumnBuilder in GpuUserDefinedFunction
Browse files Browse the repository at this point in the history
Signed-off-by: Alessandro Bellina <[email protected]>
  • Loading branch information
abellina committed Nov 6, 2024
1 parent ad4233d commit 9af5e09
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ trait GpuRowBasedUserDefinedFunction extends GpuExpression
val retConverter = GpuRowToColumnConverter.getConverterForType(dataType, nullable)
val retType = GpuColumnVector.convertFrom(dataType, nullable)
val retRow = new GenericInternalRow(size = 1)
closeOnExcept(new RapidsHostColumnBuilder(retType, batch.numRows)) { builder =>
withResource(new RapidsHostColumnBuilder(retType, batch.numRows)) { builder =>
/**
* This `nullSafe` is for https://github.com/NVIDIA/spark-rapids/issues/3942.
* And more details can be found from
Expand Down

0 comments on commit 9af5e09

Please sign in to comment.