From f32633b0832d1f788a9ccdef7c455601de7baddc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20D=C3=ADaz-Guerra=20Aparicio?= Date: Tue, 27 Feb 2024 14:12:09 +0200 Subject: [PATCH] Fix memory leak #49 --- src/gpuRIR_cuda.cu | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gpuRIR_cuda.cu b/src/gpuRIR_cuda.cu index 81a05b5..d618e24 100644 --- a/src/gpuRIR_cuda.cu +++ b/src/gpuRIR_cuda.cu @@ -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) );