[pgpool-committers: 4177] 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_6_STABLE

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

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