]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virJSONValueNewArrayFromBitmap: Refactor cleanup
authorPeter Krempa <pkrempa@redhat.com>
Fri, 12 Feb 2021 09:55:56 +0000 (10:55 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Sat, 20 Feb 2021 12:26:37 +0000 (13:26 +0100)
commit94ab321ffcd987c267db6f816918ff526c72e615
tree935595a7c575a226ab7236497aaf078f6d10af89
parent7d3a33b26ba7206568e21351694d7db7cb265eed
virJSONValueNewArrayFromBitmap: Refactor cleanup

Use g_autoptr for the JSON value objects and remove the cleanup label
and inline freeing of objects.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/util/virjson.c