Definition of dangling pointer in English English dictionary
A dangling pointer is a surviving reference to an object that no longer exists at that address In manual memory management, dangling pointers typically arise from one of: A premature free, where an object is freed, but a reference is retained; Retaining a reference to a stack-allocated object, after the relevant stack frame has been popped Dangling pointers can occur under automatic memory management, because of a garbage collection bug -- such as premature collection, or moving without updating all references -- but this is much rarer because GC code is usually a single common core of reused code