diff options
-rw-r--r-- | Objects/descrobject.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Objects/descrobject.c b/Objects/descrobject.c index 1268df9..ecf372a 100644 --- a/Objects/descrobject.c +++ b/Objects/descrobject.c @@ -628,7 +628,9 @@ descr_new(PyTypeObject *descrtype, PyTypeObject *type, const char *name) Py_DECREF(descr); descr = NULL; } - descr->d_qualname = NULL; + else { + descr->d_qualname = NULL; + } } return descr; } |