Skip to content

Commit 0957ddd

Browse files
Fix memory leak in dpnp_algo_random (#1700)
Co-authored-by: Anton <[email protected]>
1 parent 2ce997d commit 0957ddd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpnp/random/dpnp_algo_random.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ cdef class MT19937(_Engine):
442442
try:
443443
for i in range(vector_seed_len):
444444
vector_seed[i] = <uint32_t> seed[i]
445-
except (ValueError, TypeError) as e:
445+
except Exception as e:
446446
free(vector_seed)
447447
raise e
448448
else:

0 commit comments

Comments
 (0)