mirror of
https://github.com/python/cpython.git
synced 2025-10-14 10:53:40 +00:00
* selectmodule.c: fix (another!) two memory leaks -- this time in list2set
* tokenizer.[ch]: allow continuation without \ inside () [] {}.
This commit is contained in:
parent
b2c6556fb0
commit
a849b834f1
3 changed files with 21 additions and 2 deletions
|
@ -49,10 +49,12 @@ list2set(list, set, fd2obj)
|
|||
v = getintvalue(o);
|
||||
} else if ( (filenomethod = getattr(o, "fileno")) != NULL ) {
|
||||
fno = call_object(filenomethod, NULL);
|
||||
DECREF(filenomethod);
|
||||
if ( fno == NULL )
|
||||
return -1;
|
||||
if ( !is_intobject(fno) ) {
|
||||
err_badarg();
|
||||
DECREF(fno);
|
||||
return -1;
|
||||
}
|
||||
v = getintvalue(fno);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue