diff --git a/QuEST/src/GPU/QuEST_gpu.cu b/QuEST/src/GPU/QuEST_gpu.cu index 17aff8948..70c1ff82c 100755 --- a/QuEST/src/GPU/QuEST_gpu.cu +++ b/QuEST/src/GPU/QuEST_gpu.cu @@ -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){