[pgpool-committers: 3909] pgpool: Fix memory leak problem caused by commit adcb636.

Tatsuo Ishii ishii at postgresql.org
Thu Mar 30 09:27:46 JST 2017


Fix memory leak problem caused by commit adcb636.

Commit adcb636 introduces "pending message queue". When a message
arrives, the info is added to the queue and a copy of object is
created at the same time, but forgoto free the object. Fix is,
creating a new function pool_pending_message_free_pending_message()
and call it after pool_pending_message_add(),
pool_pending_message_get() and pool_pending_message_pull_out().

Problem reported by Sergey Kim.

Branch
------
V3_6_STABLE

Details
-------
http://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=9aaec32dbf0fff1f8402f362f8e01ef24693dd37

Modified Files
--------------
src/context/pool_session_context.c         | 16 ++++++++++++++++
src/include/context/pool_session_context.h |  1 +
src/protocol/pool_process_query.c          |  9 ++++++++-
src/protocol/pool_proto_modules.c          |  9 +++++++++
4 files changed, 34 insertions(+), 1 deletion(-)



More information about the pgpool-committers mailing list