initialize apr_uri_t to 0
fix JSON array memory leak in oauth.c