bpo-30615: Fix the leak reference in Modules/_elementtree.c (#2129)

diff --git a/Modules/_elementtree.c b/Modules/_elementtree.c
index b9e9b3a..929616f 100644
--- a/Modules/_elementtree.c
+++ b/Modules/_elementtree.c
@@ -1266,8 +1266,10 @@
     if (status == 0) {
         PyObject *repr, *tag;
         tag = PyObject_Repr(self->tag);
-        if (!tag)
+        if (!tag) {
+            Py_ReprLeave((PyObject *)self);
             return NULL;
+        }
 
         repr = PyString_FromFormat("<Element %s at %p>",
                                    PyString_AS_STRING(tag), self);