What is the reason of error msg: glibc detected *** free(): invalid pointer 0x2aca1e6c ***
http://www.gnu.org/software/libc/manual/html_node/Freeing-after-Malloc.h... was passed a value for ptr that was not the address of a memory block allocated with malloc.
man
http://www.gnu.org/software/libc/manual/html_node/Freeing-after-Malloc.h... was passed a value for ptr that was not the address of a memory block allocated with malloc.