projects
/
pgpool2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1413c7f
)
Fix memory leak pointed out by Coverity.
author
Tatsuo Ishii
<ishii@sraoss.co.jp>
Tue, 9 Oct 2018 08:37:25 +0000
(17:37 +0900)
committer
Tatsuo Ishii
<ishii@sraoss.co.jp>
Tue, 9 Oct 2018 08:38:20 +0000
(17:38 +0900)
src/protocol/pool_process_query.c
patch
|
blob
|
blame
|
history
diff --git
a/src/protocol/pool_process_query.c
b/src/protocol/pool_process_query.c
index e108936951fde290cb34cd0866b472966909a301..abf29a93f4e3ec3943b1a65b4818e8460be69965 100644
(file)
--- a/
src/protocol/pool_process_query.c
+++ b/
src/protocol/pool_process_query.c
@@
-3504,6
+3504,8
@@
void read_kind_from_backend(POOL_CONNECTION *frontend, POOL_CONNECTION_POOL *bac
(errmsg("reading backend data packet kind. Error on master while all slaves are normal"),
errdetail("do not degenerate because it is likely caused by a delayed commit")));
+ if (SL_MODE && pool_is_doing_extended_query_message() && msg)
+ pool_pending_message_free_pending_message(msg);
return;
}
else if (max_count <= NUM_BACKENDS / 2.0)