From a8b706b193d8d22191fa85ac290b90491be54ee3 Mon Sep 17 00:00:00 2001 From: grunfink Date: Tue, 9 Dec 2025 05:01:06 +0100 Subject: Fixed small memory leak. --- mastoapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mastoapi.c b/mastoapi.c index 9aa29d8..9503447 100644 --- a/mastoapi.c +++ b/mastoapi.c @@ -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(); -- cgit v1.2.3