Issue #14761: Fix potential leak on an error case in the import machinery.
diff --git a/Python/import.c b/Python/import.c
index 108a1e1..2f11e75 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -998,7 +998,7 @@
     FILE *fpc;
     char *buf;
     char *cpathname;
-    PyCodeObject *co;
+    PyCodeObject *co = NULL;
     PyObject *m;
 
     if (fstat(fileno(fp), &st) != 0) {
@@ -1054,6 +1054,7 @@
     return m;
 
 error_exit:
+    Py_XDECREF(co);
     PyMem_FREE(buf);
     return NULL;
 }