Browse Source

bpo-38823: Clean up refleak in fcntl module initialization. (GH-17236)

pull/17231/head
Brandt Bucher 7 years ago
committed by T. Wouters
parent
commit
54b32c9871
  1. 4
      Modules/fcntlmodule.c

4
Modules/fcntlmodule.c

@ -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;
}
Loading…
Cancel
Save