summaryrefslogtreecommitdiff
path: root/pool.c
diff options
context:
space:
mode:
Diffstat (limited to 'pool.c')
-rw-r--r--pool.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pool.c b/pool.c
index 4c9d329..edc2827 100644
--- a/pool.c
+++ b/pool.c
@@ -155,6 +155,7 @@ int psql_pool_release( PgConnPool *pool, PGconn *conn )
}
if( i < 0 ) {
+ (void)pthread_mutex_unlock( &pool->lock );
return -EINVAL;
}