mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
bpo-38823: Clean up refleak in fcntl module initialization. (GH-17236)
This commit is contained in:
parent
8e0de2a480
commit
54b32c9871
1 changed files with 3 additions and 1 deletions
|
@ -668,8 +668,10 @@ PyInit_fcntl(void)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
/* Add some symbolic constants to the module */
|
/* Add some symbolic constants to the module */
|
||||||
if (all_ins(m) < 0)
|
if (all_ins(m) < 0) {
|
||||||
|
Py_DECREF(m);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
return m;
|
return m;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue