Q
qazmlp1209
My program cores at the 'delete ptr;' statement.
I could think of the following possibilities for the core/undefined
behaviour:
- delete twice
- new/malloc is done, but subsequently free/delete is used.
- 'new' is done; Pointer reference is changed; 'delete' is done;
What else can be the reason?
I could think of the following possibilities for the core/undefined
behaviour:
- delete twice
- new/malloc is done, but subsequently free/delete is used.
- 'new' is done; Pointer reference is changed; 'delete' is done;
What else can be the reason?