commit 82b5631

grunfink  ·  2026-03-20 07:44:59 +0000 UTC
parents 8b2c601, 66e938b
Merge pull request 'Fixed another small leak' (#589) from dandelions/snac2:pr-leak-mastoapi-2 into master

Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/589
1 files changed,  +1, -0
+1, -0
1@@ -3205,6 +3205,7 @@ int mastoapi_post_handler(const xs_dict *req, const char *q_path,
2 
3         /* Ice Cubes sends these values as query parameters, so try these */
4         if (name == NULL && ruri == NULL && scope == NULL) {
5+            xs_free(args);
6             args = xs_dup(xs_dict_get(req, "q_vars"));
7             name  = xs_dict_get(args, "client_name");
8             ruri  = xs_dict_get(args, "redirect_uris");