There is no need to do
for (i=0; i<100; i++)
free(pt[i]);
in order to free memory.
Just by saying
free(pt);
itself will free the memory allocated for the array pointed to.
send mail to ngaur@chief.ecn.uoknor.edu
Nalneesh Gaur, University of oklahoma, Norman