Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bb3c05d

Browse files
ZackerySpytzbenjaminp
authored andcommitted
closes bpo-35991: Fix a potential double free in Modules/_randommodule.c. (GH-11849)
1 parent d73ac0e commit bb3c05d

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix a potential double free in Modules/_randommodule.c.

Modules/_randommodule.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,6 @@ random_seed(RandomObject *self, PyObject *args)
292292
PY_LITTLE_ENDIAN,
293293
0); /* unsigned */
294294
if (res == -1) {
295-
PyMem_Free(key);
296295
goto Done;
297296
}
298297

0 commit comments

Comments
 (0)