CWE-1045 – Parent Class with a Virtual Destructor and a Child Class without a Virtual Destructor

Read Time:12 Second

Description

A parent class has a virtual destructor method, but the parent has a child class that does not have a virtual destructor.

Modes of Introduction:

 

 

Related Weaknesses

CWE-1076

 

Consequences

Other: Reduce Reliability

 

Potential Mitigations

CVE References