From 32b500c4df38171b7ca2930c5641fd92367a041b Mon Sep 17 00:00:00 2001 From: Tatsuo Ishii Date: Fri, 6 Sep 2019 16:31:07 +0900 Subject: [PATCH] Fix memory leak. Per Coverity. --- src/protocol/pool_process_query.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/protocol/pool_process_query.c b/src/protocol/pool_process_query.c index 6c7cc23dd..2760ef16a 100644 --- a/src/protocol/pool_process_query.c +++ b/src/protocol/pool_process_query.c @@ -3280,7 +3280,8 @@ read_kind_from_backend(POOL_CONNECTION * frontend, POOL_CONNECTION_POOL * backen (errmsg("reading backend data packet kind"), errdetail("received notification message for master node %d", MASTER_NODE_ID))); - + if (msg) + pool_pending_message_free_pending_message(msg); return; } pool_unread(CONNECTION(backend, MASTER_NODE_ID), &kind, sizeof(kind)); -- 2.39.5