aboutsummaryrefslogtreecommitdiff
path: root/webfinger.c
diff options
context:
space:
mode:
Diffstat (limited to 'webfinger.c')
-rw-r--r--webfinger.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/webfinger.c b/webfinger.c
index 12ec42c..1ce5e76 100644
--- a/webfinger.c
+++ b/webfinger.c
@@ -76,9 +76,9 @@ int webfinger_request_signed(snac *snac, const char *qs, xs_str **actor, xs_str
xs *url = xs_fmt("%s:/" "/%s/.well-known/webfinger?resource=%s", proto, host, resource);
if (snac == NULL)
- xs_http_request("GET", url, headers, NULL, 0, &status, &payload, &p_size, 0);
+ xs_free(xs_http_request("GET", url, headers, NULL, 0, &status, &payload, &p_size, 0));
else
- http_signed_request(snac, "GET", url, headers, NULL, 0, &status, &payload, &p_size, 0);
+ xs_free(http_signed_request(snac, "GET", url, headers, NULL, 0, &status, &payload, &p_size, 0));
}
if (obj == NULL && valid_status(status) && payload) {