myFree() implemented