diff options
author | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2021-11-22 14:44:50 +0100 |
---|---|---|
committer | Willem Jan Palenstijn <wjp@usecode.org> | 2021-11-26 12:09:09 +0100 |
commit | 7cad7b813838ed2ddb65a4c9ea1c08c625c50043 (patch) | |
tree | 59ca80ff9e2d4356c28ee48f64eb68494e5f3372 /cuda/2d/par_fp.cu | |
parent | be2da43a560a7241c56e727fb481f1389e9f7fdf (diff) | |
download | astra-7cad7b813838ed2ddb65a4c9ea1c08c625c50043.tar.gz astra-7cad7b813838ed2ddb65a4c9ea1c08c625c50043.tar.bz2 astra-7cad7b813838ed2ddb65a4c9ea1c08c625c50043.tar.xz astra-7cad7b813838ed2ddb65a4c9ea1c08c625c50043.zip |
Fix memleak in error handling
Diffstat (limited to 'cuda/2d/par_fp.cu')
-rw-r--r-- | cuda/2d/par_fp.cu | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cuda/2d/par_fp.cu b/cuda/2d/par_fp.cu index 6035e0c..3d9e842 100644 --- a/cuda/2d/par_fp.cu +++ b/cuda/2d/par_fp.cu @@ -238,7 +238,7 @@ bool FP_simple_internal(float* D_volumeData, unsigned int volumePitch, cudaArray* D_dataArray; cudaTextureObject_t D_texObj; - if (!createTextureObject2D(D_volumeData, D_dataArray, D_texObj, volumePitch, dims.iVolWidth, dims.iVolHeight)) + if (!createArrayAndTextureObject2D(D_volumeData, D_dataArray, D_texObj, volumePitch, dims.iVolWidth, dims.iVolHeight)) return false; |