Added some free of the line can't figure out how to free the acutal struct