closes bpo-35991: Fix a potential double free in Modules/_randommodule.c. (GH-11849)

(cherry picked from commit bb3c05d7ef)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
This commit is contained in:
Miss Islington (bot) 2019-02-14 00:02:12 -08:00 committed by GitHub
parent a78251e2d6
commit e20893596f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 1 deletions

View file

@ -0,0 +1 @@
Fix a potential double free in Modules/_randommodule.c.

View file

@ -292,7 +292,6 @@ random_seed(RandomObject *self, PyObject *args)
PY_LITTLE_ENDIAN,
0); /* unsigned */
if (res == -1) {
PyMem_Free(key);
goto Done;
}