[Bf-blender-cvs] [ac75f26] soc-2016-cycles_denoising: Cycles: Fix a memory leak in the CUDA denoising code

Lukas Stockner noreply at git.blender.org
Tue Aug 23 19:06:08 CEST 2016


Commit: ac75f262b2097b84b3ad4d3f96660913183cdebc
Author: Lukas Stockner
Date:   Tue Aug 23 17:34:36 2016 +0200
Branches: soc-2016-cycles_denoising
https://developer.blender.org/rBac75f262b2097b84b3ad4d3f96660913183cdebc

Cycles: Fix a memory leak in the CUDA denoising code

===================================================================

M	intern/cycles/device/device_cuda.cpp

===================================================================

diff --git a/intern/cycles/device/device_cuda.cpp b/intern/cycles/device/device_cuda.cpp
index d2e5ed3..06a083c 100644
--- a/intern/cycles/device/device_cuda.cpp
+++ b/intern/cycles/device/device_cuda.cpp
@@ -1159,6 +1159,7 @@ public:
 #undef WRITE_DEBUG
 #endif
 		cuda_assert(cuMemFree(d_storage));
+		cuda_assert(cuMemFree(d_transforms));
 		cuda_assert(cuMemFree(d_denoise_buffers));
 
 		cuda_pop_context();




More information about the Bf-blender-cvs mailing list