pgpool2.git / summary / log / commit / refs
commit 15a49500949759c4a6e5df8a8f690cabc602c6de
Author: Tatsuo Ishii <ishii@postgresql.org>
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 d92174052..5b968fbbd 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
@@ -1320,22 +1320,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: 44ec98418f37]