After free(p), every pointer that held the block’s address is a dangling pointer: it still holds the number, but the block is no longer the program’s. Reading or writing through it is a use after free; passing it to free again is a double free. Both are undefined behaviour.
Computer Science · Begrippenlijst
Wat is Dangling pointer, use after free, double free?
Ook bekend als: dangling pointer · use after free · double free