summaryrefslogtreecommitdiffstats
path: root/cuda/2d/par_fp.cu
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2021-11-22 14:44:50 +0100
committerWillem Jan Palenstijn <wjp@usecode.org>2021-11-26 12:09:09 +0100
commit7cad7b813838ed2ddb65a4c9ea1c08c625c50043 (patch)
tree59ca80ff9e2d4356c28ee48f64eb68494e5f3372 /cuda/2d/par_fp.cu
parentbe2da43a560a7241c56e727fb481f1389e9f7fdf (diff)
downloadastra-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.cu2
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;