diff Python/modsupport.c @ 9979:489ef7f64041 legacy-trunk

builtin_complex(): Nailed memory leak. This one's in the instance test for classes with a __complex__() method. The attribute is pulled out of the instance with PyObject_GetAttr() but this transfers ownership and the function object was never DECREF'd.
author Barry Warsaw <barry@python.org>
date Wed, 27 Jan 1999 23:13:59 +0000
parents 98e37347378b
children b6b7bd20c845
line wrap: on
line diff