diff options
| author | grunfink <grunfink@comam.es> | 2025-12-09 05:01:06 +0100 |
|---|---|---|
| committer | grunfink <grunfink@comam.es> | 2025-12-09 05:01:06 +0100 |
| commit | a8b706b193d8d22191fa85ac290b90491be54ee3 (patch) | |
| tree | 0b8f42be2fa1b328b6e451d90addaa99e7abd536 | |
| parent | 4102a6a7ac7ab7c651fe0b03358148e8d15418cc (diff) | |
Fixed small memory leak.
| -rw-r--r-- | mastoapi.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3044,7 +3044,7 @@ int mastoapi_post_handler(const xs_dict *req, const char *q_path, xs *app = xs_dict_new(); xs *id = xs_replace_i(tid(0), ".", ""); xs *csec = random_str(); - char *vkey = (char *)xs_dict_get(srv_config, "vkey"); + xs *vkey = xs_dup(xs_dict_get(srv_config, "vkey")); if (vkey == NULL) vkey = random_str(); |