projects
/
pgpool2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8b012c
)
Fix memory leak per Coverity.
author
Tatsuo Ishii
<ishii@sraoss.co.jp>
Thu, 12 Sep 2019 04:39:41 +0000
(13:39 +0900)
committer
Tatsuo Ishii
<ishii@sraoss.co.jp>
Thu, 12 Sep 2019 04:53:57 +0000
(13:53 +0900)
src/protocol/pool_proto_modules.c
patch
|
blob
|
blame
|
history
diff --git
a/src/protocol/pool_proto_modules.c
b/src/protocol/pool_proto_modules.c
index f8ea4bbd2f91d88f3ff95a59c10675ac8282c4b8..91a120f7104eb155f8d5ebb94327d6958d676d52 100644
(file)
--- a/
src/protocol/pool_proto_modules.c
+++ b/
src/protocol/pool_proto_modules.c
@@
-897,7
+897,7
@@
POOL_STATUS Parse(POOL_CONNECTION *frontend, POOL_CONNECTION_POOL *backend,
/*
* Start query context
*/
- pool_start_query(query_context,
pstrdup(stmt)
, strlen(stmt) + 1, node);
+ pool_start_query(query_context,
stmt
, strlen(stmt) + 1, node);
msg = pool_create_sent_message('P', len, contents, 0, name, query_context);