diff Modules/selectmodule.c @ 1284:dbce72afe261 legacy-trunk

* selectmodule.c: fix (another!) two memory leaks -- this time in list2set * tokenizer.[ch]: allow continuation without \ inside () [] {}.
author Guido van Rossum <guido@python.org>
date Wed, 12 May 1993 11:35:44 +0000
parents c4cd0d9d8281
children cffe8d6b2f09
line wrap: on
line diff
--- a/Modules/selectmodule.c	Wed May 12 08:53:36 1993 +0000
+++ b/Modules/selectmodule.c	Wed May 12 11:35:44 1993 +0000
@@ -49,10 +49,12 @@
 	    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);