From c9ba933b0b2fdb012ccf8a8535d09381c943144d Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 18 Jul 2013 16:58:50 -0700 Subject: [PATCH] mon/MonClient: fix small leak We need to delete the version_req_d here. Signed-off-by: Sage Weil --- src/mon/MonClient.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mon/MonClient.cc b/src/mon/MonClient.cc index 57f30063fa7c2..8139b0259bf12 100644 --- a/src/mon/MonClient.cc +++ b/src/mon/MonClient.cc @@ -516,6 +516,7 @@ void MonClient::_reopen_session(int rank, string name) // throw out version check requests while (!version_requests.empty()) { finisher.queue(version_requests.begin()->second->context, -EAGAIN); + delete version_requests.begin()->second; version_requests.erase(version_requests.begin()); } -- 2.39.5