瀏覽代碼

fix: another small leak in mastoapi

green 7 月之前
父節點
當前提交
66e938bf0c
共有 1 個文件被更改,包括 1 次插入 和 0 次删除
  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");