Skip to content

Commit

Permalink
Fix memory leak #49
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidDiazGuerra authored Feb 27, 2024
1 parent 283235d commit f32633b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gpuRIR_cuda.cu
Original file line number Diff line number Diff line change
Expand Up @@ -917,6 +917,7 @@ float* gpuRIR_cuda::cuda_simulateRIR(float room_sz[3], float beta[6], float* h_p
// Free memory
gpuErrchk( cudaFree(pos_src) );
gpuErrchk( cudaFree(pos_rcv) );
gpuErrchk( cudaFree(orV_src) );
gpuErrchk( cudaFree(orV_rcv) );
gpuErrchk( cudaFree(amp) );
gpuErrchk( cudaFree(tau) );
Expand Down

0 comments on commit f32633b

Please sign in to comment.