CWE-1045

Parent Class with a Virtual Destructor and a Child Class without a Virtual Destructor

Medium

Description

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

Potential Impact

Related Weaknesses

References

View on MITRE CWE Database →

Need Help Fixing This Vulnerability?

Our security experts can help you identify and remediate CWE-1045 vulnerabilities in your codebase.

Get Security Assessment