pgpool2.git / summary / log / commit / refs

commit    7bef06e952e0f93a3e4ca620749ff59d4c92c2c3
Author:   Tatsuo Ishii <ishii@postgresql.org>
Commit:   Muhammad Usama <m.usama@gmail.com>
Date:     Tue Nov 19 05:51:18 2013 +0000

    Remove unused code.
    
    Per Coverity report #1111487 "Uninitialized pointer read".


src/protocol/pool_proto_modules.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/protocol/pool_proto_modules.c b/src/protocol/pool_proto_modules.c index e59b0a119..d85fa352c 100644 --- a/src/protocol/pool_proto_modules.c +++ b/src/protocol/pool_proto_modules.c @@ -5,7 +5,7 @@ * pgpool: a language independent connection pool server for PostgreSQL * written by Tatsuo Ishii * - * Copyright (c) 2003-2012 PgPool Global Development Group + * Copyright (c) 2003-2013 PgPool Global Development Group * * Permission to use, copy, modify, and distribute this software and * its documentation for any purpose and without fee is hereby @@ -1321,22 +1321,15 @@ POOL_STATUS Bind(POOL_CONNECTION *frontend, POOL_CONNECTION_POOL *backend, if (pool_extended_send_and_wait(query_context, "B", len, contents, 1, MASTER_NODE_ID) != POOL_CONTINUE) { - if (rewrite_msg != NULL) - /* free(rewrite_msg) */; return POOL_END; } if (pool_extended_send_and_wait(query_context, "B", len, contents, -1, MASTER_NODE_ID) != POOL_CONTINUE) { - if (rewrite_msg != NULL) - /* free(rewrite_msg) */; return POOL_END; } - if (rewrite_msg != NULL) - /* free(rewrite_msg) */; - return POOL_CONTINUE; } [parent: 522ef0b7d573]