In use after free flaws, a program fails to clear the pointer to a memory location after freeing that memory location, which enables bad actors to exploit the flaw and attack the program.