-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Internal Code
-
Labels:
-
Fully Compatible
-
ALL
-
Platforms 2017-07-31
The correct derived class destructor is not invoked due to the absence of a virtual destructor in the base class
Defect 101805 (STATIC_C)
Checker VIRTUAL_DTOR (subcategory none)
File: /src/mongo/db/modules/enterprise/src/watchdog/watchdog.h
Function mongo::DirectoryCheck::~DirectoryCheck()
/src/mongo/db/modules/enterprise/src/watchdog/watchdog.h, line: 62
Class "mongo::DirectoryCheck" has a destructor and a pointer to it is upcast to class "mongo::WatchdogCheck" which doesn't have a virtual destructor.
class DirectoryCheck : public WatchdogCheck {