diff --git a/psycopg/connection_type.c b/psycopg/connection_type.c index 358acfe13ee7e5fed7e46e14cf27c930a4270908..cf41be39adbd74973df6d1b7d97a308c2f497f05 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;