Skip to content

Commit e10f4d2

Browse files
authored
Merge pull request #1055 from dirac-institute/fix_memory_leak
Fix a memory leak
2 parents dc09be8 + 31132c2 commit e10f4d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/kbmod/search/psi_phi_array.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ void PsiPhiArray::clear() {
4848

4949
void PsiPhiArray::clear_from_gpu() {
5050
// We only clear the data from the GPU if it is allocated there.
51-
if (!data_on_gpu) {
51+
if (data_on_gpu) {
5252
logging::Logger* logger = logging::getLogger("kbmod.search.psi_phi_array");
5353

5454
if (gpu_time_array.on_gpu()) {

0 commit comments

Comments
 (0)