Double mutex destroy fix.

This commit is contained in:
Federico Di Gregorio 2006-09-02 08:50:30 +00:00
parent 616a1c2042
commit afaca71aa9
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2006-09-02 Federico Di Gregorio <fog@initd.org>
* 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

View File

@ -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;
}