Commit ba2b84dc authored by Jeremy Hylton's avatar Jeremy Hylton

It was also experimental because it was missing a DECREF.

parent 9b115852
...@@ -21,7 +21,7 @@ static char ExtensionClass_module_documentation[] = ...@@ -21,7 +21,7 @@ static char ExtensionClass_module_documentation[] =
" - They provide access to unbound methods,\n" " - They provide access to unbound methods,\n"
" - They can be called to create instances.\n" " - They can be called to create instances.\n"
"\n" "\n"
"$Id: ExtensionClass.c,v 1.54 2002/06/18 22:40:15 jeremy Exp $\n" "$Id: ExtensionClass.c,v 1.55 2002/06/18 22:41:26 jeremy Exp $\n"
; ;
#include <stdio.h> #include <stdio.h>
...@@ -837,6 +837,7 @@ PMethod_repr(PMethod *self) ...@@ -837,6 +837,7 @@ PMethod_repr(PMethod *self)
PyString_AS_STRING(repr)); PyString_AS_STRING(repr));
if (n == -1) if (n == -1)
n = sizeof(buf) - 1; n = sizeof(buf) - 1;
Py_DECREF(repr);
} }
else { else {
n = snprintf(buf, sizeof(buf), n = snprintf(buf, sizeof(buf),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment