CWE Database
/

CWE-1087

Back to CWE list

CWE-1087

Class with Virtual Method without a Virtual Destructor

Base
Incomplete

Description

A class contains a virtual method, but the method does not have an associated virtual destructor.

Common Consequences

Scope

Other

Impact

Reduce Reliability

Applicable Platforms

Object-Oriented

Security Training

Train your team to recognize and prevent security threats with our comprehensive security awareness program.

Start Training

Vulnerability Scanning

Discover vulnerabilities in your applications and infrastructure before attackers do.

Scan Now