[pgpool-committers: 4178] pgpool: Fix memory leak with streaming replication mode/extended query

Tatsuo Ishii ishii at postgresql.org
Thu Aug 3 17:12:09 JST 2017


Fix memory leak with streaming replication mode/extended query case.

When Close Complete message arrives, Pgpool-II did not remove sent
message because at this point the pending message, which includes info
to remove the sent message, has been already removed by
read_kind_from_backend(). To fix the problem read_kind_from_backend()
does not remove the pending message for Close Complete and let
CloseComplete() to extract and remove the pending message to remove
the sent message data.

Per bug#324.

Branch
------
V3_5_STABLE

Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=0780efe4904dab60e442bc2c2709f38743a7cb18

Modified Files
--------------
src/protocol/pool_process_query.c | 17 +++++++++++++----
src/protocol/pool_proto_modules.c | 20 +++++++++++++++-----
2 files changed, 28 insertions(+), 9 deletions(-)



More information about the pgpool-committers mailing list