summaryrefslogtreecommitdiffstats
path: root/src/messages/MCacheExpire.h
diff options
context:
space:
mode:
authorPatrick Donnelly <pdonnell@redhat.com>2018-07-30 19:23:28 +0200
committerPatrick Donnelly <pdonnell@redhat.com>2018-08-15 22:36:36 +0200
commit6632131da1f0f6f623dd370f2cae48ef45124632 (patch)
tree93d55ae8e6fdcb9e9e2df7a990de2ee7118530a9 /src/messages/MCacheExpire.h
parentmsg: add factory method to correctly construct smart_ptr (diff)
downloadceph-6632131da1f0f6f623dd370f2cae48ef45124632.tar.xz
ceph-6632131da1f0f6f623dd370f2cae48ef45124632.zip
mds: use message factory to avoid leaks
Fixes: http://tracker.ceph.com/issues/24306 Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
Diffstat (limited to 'src/messages/MCacheExpire.h')
-rw-r--r--src/messages/MCacheExpire.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/messages/MCacheExpire.h b/src/messages/MCacheExpire.h
index 3f0f953c539..1fd699b8ef4 100644
--- a/src/messages/MCacheExpire.h
+++ b/src/messages/MCacheExpire.h
@@ -70,11 +70,11 @@ public:
int get_from() const { return from; }
+protected:
MCacheExpire() : Message(MSG_MDS_CACHEEXPIRE), from(-1) {}
MCacheExpire(int f) :
Message(MSG_MDS_CACHEEXPIRE),
from(f) { }
-private:
~MCacheExpire() override {}
public: