Quellcode durchsuchen

fix: another small leak in mastoapi

green vor 7 Monaten
Ursprung
Commit
66e938bf0c
1 geänderte Dateien mit 1 neuen und 0 gelöschten Zeilen
  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");