Fix double print due to not releasing variable.