diff options
| author | 2025-11-14 16:24:35 +0100 | |
|---|---|---|
| committer | 2025-11-14 16:49:26 +0100 | |
| commit | d704b3c23ef4559191bd57ffb1500226f9d5b3b5 (patch) | |
| tree | 32a9c26540f5c8cb878dbef8b96167944e1dfe6a | |
| parent | Version 2.84 RELEASED. (diff) | |
| download | snac2-d704b3c23ef4559191bd57ffb1500226f9d5b3b5.tar.gz snac2-d704b3c23ef4559191bd57ffb1500226f9d5b3b5.tar.xz snac2-d704b3c23ef4559191bd57ffb1500226f9d5b3b5.zip | |
fixed memory leak
| -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 | |||
| 76 | xs *url = xs_fmt("%s:/" "/%s/.well-known/webfinger?resource=%s", proto, host, resource); | 76 | xs *url = xs_fmt("%s:/" "/%s/.well-known/webfinger?resource=%s", proto, host, resource); |
| 77 | 77 | ||
| 78 | if (snac == NULL) | 78 | if (snac == NULL) |
| 79 | xs_http_request("GET", url, headers, NULL, 0, &status, &payload, &p_size, 0); | 79 | xs_free(xs_http_request("GET", url, headers, NULL, 0, &status, &payload, &p_size, 0)); |
| 80 | else | 80 | else |
| 81 | http_signed_request(snac, "GET", url, headers, NULL, 0, &status, &payload, &p_size, 0); | 81 | xs_free(http_signed_request(snac, "GET", url, headers, NULL, 0, &status, &payload, &p_size, 0)); |
| 82 | } | 82 | } |
| 83 | 83 | ||
| 84 | if (obj == NULL && valid_status(status) && payload) { | 84 | if (obj == NULL && valid_status(status) && payload) { |