freeing up space allocating by calloc(...); few more memory leaks to fix ...