pgpool2.git / summary / log / commit / refs

commit    84a95a4497fa122bf453db7e8d995ade3353c308
Author:   Tatsuo Ishii <ishii@postgresql.org>
Date:     Fri Aug 08 21:46:59 2014 +0000

    Fix to close fd for pgpool_status.
    
    Per coverity 1230543.


src/main/pgpool_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/pgpool_main.c b/src/main/pgpool_main.c index b1da9ab59..c34c74cbe 100644 --- a/src/main/pgpool_main.c +++ b/src/main/pgpool_main.c @@ -2482,11 +2482,12 @@ static int read_status_file(bool discard_status) break; } } - fclose(fd); } else is_old_format = false; + fclose(fd); + if (!is_old_format) { /* [parent: 398cf4c7a8a8]