diff options
author | Guido van Rossum <guido@python.org> | 1993-05-12 11:35:44 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1993-05-12 11:35:44 (GMT) |
commit | a849b834f1e86bec20027654c91bb4cc74de5c8d (patch) | |
tree | 9889abb429019cd73a52e225b1f9ddbc4d4b87ee /Modules/selectmodule.c | |
parent | b2c6556fb0d309a04e37c2c9937fed16284cd00f (diff) | |
download | cpython-a849b834f1e86bec20027654c91bb4cc74de5c8d.zip cpython-a849b834f1e86bec20027654c91bb4cc74de5c8d.tar.gz cpython-a849b834f1e86bec20027654c91bb4cc74de5c8d.tar.bz2 |
* selectmodule.c: fix (another!) two memory leaks -- this time in list2set
* tokenizer.[ch]: allow continuation without \ inside () [] {}.
Diffstat (limited to 'Modules/selectmodule.c')
-rw-r--r-- | Modules/selectmodule.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c index de80b82..81fedd5 100644 --- a/Modules/selectmodule.c +++ b/Modules/selectmodule.c @@ -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); |