commit 980a8d5

default  ·  2023-05-04 07:34:33 +0000 UTC
parent 185aac2
Fixed more warnings.
3 files changed,  +3, -2
M html.c
+2, -1
 1@@ -1384,8 +1384,9 @@ void process_queue_item(xs_dict *q_item)
 2         xs *headers = xs_dict_new();
 3         headers = xs_dict_append(headers, "content-type", "application/json");
 4 
 5-        xs *rsp  = xs_http_request("POST", url, headers,
 6+        xs *rsp = xs_http_request("POST", url, headers,
 7                                    body, strlen(body), &status, NULL, NULL, 0);
 8+        rsp = xs_free(rsp);
 9 
10         srv_debug(0, xs_fmt("telegram post %d", status));
11     }
M html.c
+1, -0
1@@ -1282,6 +1282,7 @@ xs_str *html_notifications(snac *snac)
2 
3     /* set the check time to now */
4     xs *dummy = notify_check_time(snac, 1);
5+    dummy = xs_free(dummy);
6 
7     timeline_touch(snac);
8 
+0, -1
1@@ -542,7 +542,6 @@ xs_dict *mastoapi_status(snac *snac, const xs_dict *msg)
2     xs *f   = xs_val_new(XSTYPE_FALSE);
3     xs *t   = xs_val_new(XSTYPE_TRUE);
4     xs *n   = xs_val_new(XSTYPE_NULL);
5-    xs *el  = xs_list_new();
6     xs *idx = NULL;
7     xs *ixc = NULL;
8