From 059729a3f4ffd2095fbfbf9aa368ffb2ab6fa82d Mon Sep 17 00:00:00 2001 From: zhangting Date: Sat, 9 Nov 2024 10:05:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BB=BA=E7=AB=8B=E8=BF=9E=E6=8E=A5=E8=BF=87?= =?UTF-8?q?=E7=A8=8B=E4=B8=AD=E5=8A=A0=E9=94=81=E7=A8=8B=E5=BA=8Fexit?= =?UTF-8?q?=E4=B9=8B=E5=90=8E=E9=87=8A=E6=94=BE=E9=94=81=20=EF=BC=88cherry?= =?UTF-8?q?=20picked=20commit=20from=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- psycopg/connection_type.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/psycopg/connection_type.c b/psycopg/connection_type.c index 358acfe..cf41be3 100644 --- a/psycopg/connection_type.c +++ b/psycopg/connection_type.c @@ -1439,9 +1439,7 @@ connection_setup(connectionObject *self, const char *dsn, long int async) Py_END_ALLOW_THREADS; pthread_mutex_lock(&self->lock); - if (register_type_uint(self, &tstate)) { - goto exit; - } + register_type_uint(self, &tstate); if (tstate) { free(tstate); tstate = NULL; -- Gitee