fix mem leak of LinkInfo.
fixed json output from injecting url.