X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/catacomb-python/blobdiff_plain/dd7f294388082e8c48f1281bbd09ea61e9cad773..9444777c58c60253afdabf5b45011440845770e0:/pgen.c diff --git a/pgen.c b/pgen.c index 108fa31..30b78ed 100644 --- a/pgen.c +++ b/pgen.c @@ -424,6 +424,7 @@ static int peset_x(PyObject *me, PyObject *xobj, void *hunoz) mp *x = 0; pgen_event *ev = PGEVENT_EV(me); int rc = -1; + if (!x) NIERR("__del__"); PGEVENT_CHECK(me); if ((x = getmp(xobj)) == 0) goto end; mp_drop(ev->m);