Przeglądaj źródła

fix: another small leak in mastoapi

green 4 miesięcy temu
rodzic
commit
66e938bf0c
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      mastoapi.c

+ 1 - 0
mastoapi.c

@@ -3205,6 +3205,7 @@ int mastoapi_post_handler(const xs_dict *req, const char *q_path,
 
         /* Ice Cubes sends these values as query parameters, so try these */
         if (name == NULL && ruri == NULL && scope == NULL) {
+            xs_free(args);
             args = xs_dup(xs_dict_get(req, "q_vars"));
             name  = xs_dict_get(args, "client_name");
             ruri  = xs_dict_get(args, "redirect_uris");