diff options
Diffstat (limited to 'Objects/unionobject.c')
-rw-r--r-- | Objects/unionobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/unionobject.c b/Objects/unionobject.c index cc7181d..8435763 100644 --- a/Objects/unionobject.c +++ b/Objects/unionobject.c @@ -490,10 +490,10 @@ _Py_Union(PyObject *args) } result->args = dedup_and_flatten_args(args); + _PyObject_GC_TRACK(result); if (result->args == NULL) { - PyObject_GC_Del(result); + Py_DECREF(result); return NULL; } - _PyObject_GC_TRACK(result); return (PyObject*)result; } |