Skip to content

Commit

Permalink
fix leak
Browse files Browse the repository at this point in the history
  • Loading branch information
iaomw committed Oct 14, 2024
1 parent ca3113c commit e0c02c0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions zenovis/xinxinoptix/XAS.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ namespace xinxinoptix {
{
CUDA_CHECK( cudaMalloc( reinterpret_cast<void**>( &_bufferXAS_ ), compacted_size ) );
OPTIX_CHECK( optixAccelCompact( context, 0, _handleXAS_, _bufferXAS_, compacted_size, &_handleXAS_ ) );

cudaFree((void*)output_buffer_xas);
}
else
{
Expand Down

0 comments on commit e0c02c0

Please sign in to comment.