diff options
| author | green <dandelions@disroot.org> | 2025-11-14 16:24:35 +0100 |
|---|---|---|
| committer | green <dandelions@disroot.org> | 2025-11-14 16:49:26 +0100 |
| commit | d704b3c23ef4559191bd57ffb1500226f9d5b3b5 (patch) | |
| tree | 32a9c26540f5c8cb878dbef8b96167944e1dfe6a /webfinger.c | |
| parent | 2a617bc34cdaf66431a1de46565436c62f44fc54 (diff) | |
fixed memory leak
Diffstat (limited to 'webfinger.c')
| -rw-r--r-- | webfinger.c | 4 |
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) { |