Skip to content

Commit dd7a6ea

Browse files
authored
Resolved issue reported by Coverity tool (#1514)
1 parent 3824551 commit dd7a6ea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dpnp/backend/kernels/dpnp_krnl_random.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ DPCTLSyclEventRef
251251
auto event_out =
252252
mkl_rng::generate(distribution, DPNP_RNG_ENGINE, size, result1);
253253
event_ref = reinterpret_cast<DPCTLSyclEventRef>(&event_out);
254+
return DPCTLEvent_Copy(event_ref);
254255
}
255256
return DPCTLEvent_Copy(event_ref);
256257
}

0 commit comments

Comments
 (0)