Skip to content

Commit

Permalink
patched memory leak in GPU destroyQureg (reported by harry900831)
Browse files Browse the repository at this point in the history
  • Loading branch information
TysonRayJones authored Mar 21, 2020
1 parent 192be6a commit 4c09624
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions QuEST/src/GPU/QuEST_gpu.cu
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,8 @@ void statevec_destroyQureg(Qureg qureg, QuESTEnv env)
// Free GPU memory
cudaFree(qureg.deviceStateVec.real);
cudaFree(qureg.deviceStateVec.imag);
cudaFree(qureg.firstLevelReduction);
cudaFree(qureg.secondLevelReduction);
}

int GPUExists(void){
Expand Down

0 comments on commit 4c09624

Please sign in to comment.