summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-05-04 09:34:33 +0200
committerdefault <nobody@localhost>2023-05-04 09:34:33 +0200
commit980a8d524fae11d17366e7aea56206d13f278e31 (patch)
treefc1a9f5dda124faaea7bda62b867667b81edf5f5
parent185aac23876f9ae5d9b613f8b9abd517c3ab3b4d (diff)
Fixed more warnings.
-rw-r--r--activitypub.c3
-rw-r--r--html.c1
-rw-r--r--mastoapi.c1
3 files changed, 3 insertions, 2 deletions
diff --git a/activitypub.c b/activitypub.c
index c25b733..0d5439d 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -1384,8 +1384,9 @@ void process_queue_item(xs_dict *q_item)
xs *headers = xs_dict_new();
headers = xs_dict_append(headers, "content-type", "application/json");
- xs *rsp = xs_http_request("POST", url, headers,
+ xs *rsp = xs_http_request("POST", url, headers,
body, strlen(body), &status, NULL, NULL, 0);
+ rsp = xs_free(rsp);
srv_debug(0, xs_fmt("telegram post %d", status));
}
diff --git a/html.c b/html.c
index 3ebe70d..8d4203d 100644
--- a/html.c
+++ b/html.c
@@ -1282,6 +1282,7 @@ xs_str *html_notifications(snac *snac)
/* set the check time to now */
xs *dummy = notify_check_time(snac, 1);
+ dummy = xs_free(dummy);
timeline_touch(snac);
diff --git a/mastoapi.c b/mastoapi.c
index 2413edb..c333573 100644
--- a/mastoapi.c
+++ b/mastoapi.c
@@ -542,7 +542,6 @@ xs_dict *mastoapi_status(snac *snac, const xs_dict *msg)
xs *f = xs_val_new(XSTYPE_FALSE);
xs *t = xs_val_new(XSTYPE_TRUE);
xs *n = xs_val_new(XSTYPE_NULL);
- xs *el = xs_list_new();
xs *idx = NULL;
xs *ixc = NULL;