Skip to content

Commit 31132c2

Browse files
committed
Fix a memory leak
1 parent dc09be8 commit 31132c2

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)