c – Need more information about Aborted (core dumped)
c – Need more information about Aborted (core dumped)
Core dump file generally gets created when a program terminates abnormally.
Calling free()
twice on a pointer causes segmentation fault. Thats why you are getting coredumped.
You can find some information here about calling free on same pointer twice.