Skip to content

Commit

Permalink
bpo-38823: Clean up refleak in fcntl module initialization. (GH-17236)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandtbucher authored and Yhg1s committed Nov 19, 2019
1 parent 8e0de2a commit 54b32c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Modules/fcntlmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -668,8 +668,10 @@ PyInit_fcntl(void)
return NULL;

/* Add some symbolic constants to the module */
if (all_ins(m) < 0)
if (all_ins(m) < 0) {
Py_DECREF(m);
return NULL;
}

return m;
}

0 comments on commit 54b32c9

Please sign in to comment.