commit a8b706b
grunfink
·
2025-12-09 04:01:06 +0000 UTC
parent 4102a6a
Fixed small memory leak.
1 files changed,
+1,
-1
+1,
-1
1@@ -3044,7 +3044,7 @@ int mastoapi_post_handler(const xs_dict *req, const char *q_path,
2 xs *app = xs_dict_new();
3 xs *id = xs_replace_i(tid(0), ".", "");
4 xs *csec = random_str();
5- char *vkey = (char *)xs_dict_get(srv_config, "vkey");
6+ xs *vkey = xs_dup(xs_dict_get(srv_config, "vkey"));
7 if (vkey == NULL)
8 vkey = random_str();
9