diff --git a/psycopg/connection_type.c b/psycopg/connection_type.c index 4399c08675cb7e7f91d84031ed498d9184e3e2d8..287e7d3f6cf54943d945a0f267d88c0f1ebab979 100644 --- a/psycopg/connection_type.c +++ b/psycopg/connection_type.c @@ -1440,9 +1440,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;