From afaca71aa925c9f42481d07d8ccf0150c054b27e Mon Sep 17 00:00:00 2001 From: Federico Di Gregorio Date: Sat, 2 Sep 2006 08:50:30 +0000 Subject: [PATCH] Double mutex destroy fix. --- ChangeLog | 3 +++ psycopg/connection_type.c | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b273e20d..de22612a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2006-09-02 Federico Di Gregorio + * psycopg/connection_type.c: applied patch from Joerg Sonnenberger + to fix a double mutex destroy. + * Release 2.0.5.1. * psycopg/cursor_type.c: applied patch from Jason Erickson to diff --git a/psycopg/connection_type.c b/psycopg/connection_type.c index f8cbd806..990cc6ab 100644 --- a/psycopg/connection_type.c +++ b/psycopg/connection_type.c @@ -288,7 +288,6 @@ connection_setup(connectionObject *self, char *dsn) pthread_mutex_init(&(self->lock), NULL); if (conn_connect(self) != 0) { - pthread_mutex_destroy(&(self->lock)); Dprintf("connection_init: FAILED"); return -1; }