Fix file dscriptor leak in pool_close(). This bug was introduced in
authorTatsuo Ishii <ishii at sraoss.co.jp>
Sat, 30 Jul 2005 12:30:20 +0000 (12:30 +0000)
committerTatsuo Ishii <ishii at sraoss.co.jp>
Sat, 30 Jul 2005 12:30:20 +0000 (12:30 +0000)
pgpool 2.6.1.

pool_stream.c

index 58f452768543a1950a1d7749aebd313f400b97ed..f2088ddd092375fa13bd4f0631ea6a39fe8d427b 100644 (file)
@@ -91,6 +91,7 @@ POOL_CONNECTION *pool_open(int fd)
 */
 void pool_close(POOL_CONNECTION *cp)
 {
+       close(cp->fd);
        free(cp->wbuf);
        free(cp->hp);
        if (cp->sbuf)