mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-26 10:53:44 +03:00
Double mutex destroy fix.
This commit is contained in:
parent
616a1c2042
commit
afaca71aa9
|
@ -1,5 +1,8 @@
|
||||||
2006-09-02 Federico Di Gregorio <fog@initd.org>
|
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.
|
* Release 2.0.5.1.
|
||||||
|
|
||||||
* psycopg/cursor_type.c: applied patch from Jason Erickson to
|
* psycopg/cursor_type.c: applied patch from Jason Erickson to
|
||||||
|
|
|
@ -288,7 +288,6 @@ connection_setup(connectionObject *self, char *dsn)
|
||||||
pthread_mutex_init(&(self->lock), NULL);
|
pthread_mutex_init(&(self->lock), NULL);
|
||||||
|
|
||||||
if (conn_connect(self) != 0) {
|
if (conn_connect(self) != 0) {
|
||||||
pthread_mutex_destroy(&(self->lock));
|
|
||||||
Dprintf("connection_init: FAILED");
|
Dprintf("connection_init: FAILED");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user