diff --git a/Samples/simpleCudaGraphs/simpleCudaGraphs.cu b/Samples/simpleCudaGraphs/simpleCudaGraphs.cu index af6b4eb6..c3f8c1d9 100644 --- a/Samples/simpleCudaGraphs/simpleCudaGraphs.cu +++ b/Samples/simpleCudaGraphs/simpleCudaGraphs.cu @@ -364,6 +364,7 @@ void cudaGraphsUsingStreamCapture(float *inputVec_h, float *inputVec_d, checkCudaErrors(cudaStreamDestroy(stream1)); checkCudaErrors(cudaStreamDestroy(stream2)); checkCudaErrors(cudaStreamDestroy(streamForGraph)); + checkCudaErrors(cudaEventDestroy(reduceKernelEvent)); } int main(int argc, char **argv) {