Fix `json_url` leak

Was freeing it on failure, but not on success.