$NetBSD: patch-aa,v 1.2 2006/09/02 14:15:13 joerg Exp $ --- psycopg/connection_type.c.orig 2006-09-02 16:07:53.000000000 +0200 +++ psycopg/connection_type.c @@ -288,7 +288,6 @@ connection_setup(connectionObject *self, pthread_mutex_init(&(self->lock), NULL); if (conn_connect(self) != 0) { - pthread_mutex_destroy(&(self->lock)); Dprintf("connection_init: FAILED"); return -1; }