[Zodb-checkins] CVS: ZODB3/ZODB - coptimizations.c:1.26

Jeremy Hylton jeremy at zope.com
Thu Dec 11 11:02:57 EST 2003


Update of /cvs-repository/ZODB3/ZODB
In directory cvs.zope.org:/tmp/cvs-serv23063

Modified Files:
	coptimizations.c 
Log Message:
missing decref


=== ZODB3/ZODB/coptimizations.c 1.25 => 1.26 ===
--- ZODB3/ZODB/coptimizations.c:1.25	Thu Dec 11 00:16:50 2003
+++ ZODB3/ZODB/coptimizations.c	Thu Dec 11 11:02:56 2003
@@ -196,8 +196,10 @@
 		    goto err;
 	    }
 	    descr = PyObject_GetAttr(oid, __get__);
-	    if (descr)
+	    if (descr) {
+		Py_DECREF(descr);
 		goto return_none;
+	    }
 	    /* Otherwise it's not a descriptor and it's just some
 	       weird value.  Maybe we'll get an error later.
 	    */




More information about the Zodb-checkins mailing list