]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw_main.cc: add missing virtual destructor for RGWRequest
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 19 Sep 2014 10:25:07 +0000 (12:25 +0200)
committerSage Weil <sage@redhat.com>
Fri, 19 Sep 2014 18:35:36 +0000 (11:35 -0700)
CID 1160858 (#1 of 1): Non-virtual destructor (VIRTUAL_DTOR)
 nonvirtual_dtor: Class RGWLoadGenRequest has a destructor
 and a pointer to it is upcast to class RGWRequest which doesn't
 have a virtual destructor.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
(cherry picked from commit b82ceda7775ff85943d9143b73789eb37b09bfa9)

src/rgw/rgw_main.cc

index 01c63428430f4a871dfb9d49df5206fc0a660389..2f2b755a762e2fb2d0a1a4fb54c917ca8a47103d 100644 (file)
@@ -97,6 +97,8 @@ struct RGWRequest
   RGWRequest() : id(0), s(NULL), op(NULL) {
   }
 
+  virtual ~RGWRequest() {}
+
   void init_state(req_state *_s) {
     s = _s;
   }