Anybody pls help me fix this....I get the following error message when I execute the program given below.

Thanks in advance.
The Error message is :

*** glibc detected *** ./a.out: double free...