freeing the wrong pointer, sorry my mistake.