mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-09-07 18:30:27 +00:00
Fix memory leak for json_object_set (#570)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
This commit is contained in:
@@ -2663,7 +2663,7 @@ get_accessible_repo_list_cb (evhtp_request_t *req, void *arg)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
json_object_set_new (obj, "type", json_string ("grepo"));
|
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);
|
json_array_append_new (repo_array, obj);
|
||||||
g_object_unref (srepo);
|
g_object_unref (srepo);
|
||||||
|
Reference in New Issue
Block a user