[clfft] 53/128: fixed leaking of memory

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Thu Oct 22 14:54:38 UTC 2015


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch master
in repository clfft.

commit 8a4c20c3c5ba87c97457fdc00473b13e943312c7
Author: Victor Carlquist <victorcarlquist at gmail.com>
Date:   Tue Sep 1 18:37:07 2015 -0300

    fixed leaking of memory
---
 src/library/fft_binary_lookup.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/library/fft_binary_lookup.cpp b/src/library/fft_binary_lookup.cpp
index 790f224..6ca287e 100644
--- a/src/library/fft_binary_lookup.cpp
+++ b/src/library/fft_binary_lookup.cpp
@@ -481,6 +481,7 @@ cl_int FFTBinaryLookup::populateCache()
     writeCacheFile(data); // ignore return code, because it does nothing if
                           // the file could not be written (i.e the current
                           // thread did not create the file
+    delete [] data[0];
 
     return CL_SUCCESS;
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/clfft.git



More information about the debian-science-commits mailing list