diff options
| author | 2024-05-30 10:49:32 +0200 | |
|---|---|---|
| committer | 2024-05-30 10:49:32 +0200 | |
| commit | a2e08688d5e7fbf1974758c4561d88bccc402385 (patch) | |
| tree | 28edc9cb45b7c20bac614d378bd2322d6adc23d7 /mastoapi.c | |
| parent | Merge pull request 'Mastodon PATCH API for user profile updates' (#169) from ... (diff) | |
| download | penes-snac2-a2e08688d5e7fbf1974758c4561d88bccc402385.tar.gz penes-snac2-a2e08688d5e7fbf1974758c4561d88bccc402385.tar.xz penes-snac2-a2e08688d5e7fbf1974758c4561d88bccc402385.zip | |
Fixed minor leak.
Diffstat (limited to 'mastoapi.c')
| -rw-r--r-- | mastoapi.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -3185,7 +3185,7 @@ int mastoapi_patch_handler(const xs_dict *req, const char *q_path, | |||
| 3185 | const xs_str *k; | 3185 | const xs_str *k; |
| 3186 | const xs_val *v; | 3186 | const xs_val *v; |
| 3187 | const xs_str *field_name = NULL; | 3187 | const xs_str *field_name = NULL; |
| 3188 | xs_dict *new_fields = xs_dict_new(); | 3188 | xs *new_fields = xs_dict_new(); |
| 3189 | while (xs_dict_next(args, &k, &v, &c)) { | 3189 | while (xs_dict_next(args, &k, &v, &c)) { |
| 3190 | if (strcmp(k, "display_name") == 0) { | 3190 | if (strcmp(k, "display_name") == 0) { |
| 3191 | if (v != NULL) | 3191 | if (v != NULL) |