OWASPASVS 5.0 requirement

ASVS-V1.4.3 Dynamically allocated memory and resources are released, and that references or pointers to freed memory are removed or set to null to…

L2 Published 2025 Official page ↗
Standard
OWASP ASVS 5.0
Chapter
V1 Encoding and Sanitization
Section
V1.4 Memory, String, and Unmanaged Code
Level
L2 (requirement applies from this verification level up)

Requirement

Verify that dynamically allocated memory and resources are released, and that references or pointers to freed memory are removed or set to null to prevent dangling pointers and use-after-free vulnerabilities.