fix possible NULL dereference

This commit is contained in:
Benjamin Peterson 2011-12-17 08:02:20 -05:00
parent 2f197078fb
commit f2fe7f0881
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}