1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-05 01:11:05 +00:00

Fix memory leak for json_object_set (#570)

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
This commit is contained in:
feiniks
2022-07-27 18:34:05 +08:00
committed by GitHub
parent 571854c6f0
commit 5ab20142e2

View File

@@ -2663,7 +2663,7 @@ get_accessible_repo_list_cb (evhtp_request_t *req, void *arg)
continue;
}
json_object_set_new (obj, "type", json_string ("grepo"));
json_object_set (obj, "owner", json_string ("Organization"));
json_object_set_new (obj, "owner", json_string ("Organization"));
json_array_append_new (repo_array, obj);
g_object_unref (srepo);