Young newspaper editor freed after six months in prison