summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-05-30 10:49:32 +0200
committerdefault <nobody@localhost>2024-05-30 10:49:32 +0200
commita2e08688d5e7fbf1974758c4561d88bccc402385 (patch)
tree28edc9cb45b7c20bac614d378bd2322d6adc23d7
parentd56d4beb90f613b82ebf705a3e81a667b9601860 (diff)
Fixed minor leak.
-rw-r--r--mastoapi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mastoapi.c b/mastoapi.c
index c1f70b9..cc4c274 100644
--- a/mastoapi.c
+++ b/mastoapi.c
@@ -3185,7 +3185,7 @@ int mastoapi_patch_handler(const xs_dict *req, const char *q_path,
const xs_str *k;
const xs_val *v;
const xs_str *field_name = NULL;
- xs_dict *new_fields = xs_dict_new();
+ xs *new_fields = xs_dict_new();
while (xs_dict_next(args, &k, &v, &c)) {
if (strcmp(k, "display_name") == 0) {
if (v != NULL)