~psycopg/psycopg/2.0.x

« back to all changes in this revision

Viewing changes to psycopg/connection_type.c

  • Committer: Federico Di Gregorio
  • Date: 2006-09-02 08:50:30 UTC
  • Revision ID: fog-edaa0b9bdc1a79698d4efe3db589509660dd491b
Double mutex destroy fix.

Show diffs side-by-side

added added

removed removed

Lines of Context:
288
288
    pthread_mutex_init(&(self->lock), NULL);
289
289
 
290
290
    if (conn_connect(self) != 0) {
291
 
        pthread_mutex_destroy(&(self->lock));
292
291
        Dprintf("connection_init: FAILED");
293
292
        return -1;
294
293
    }