* selectmodule.c: fix (another!) two memory leaks -- this time in list2set

* tokenizer.[ch]: allow continuation without \ inside () [] {}.
This commit is contained in:
Guido van Rossum 1993-05-12 11:35:44 +00:00
parent b2c6556fb0
commit a849b834f1
3 changed files with 21 additions and 2 deletions

View file

@ -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);