]> xenbits.xensource.com Git - libvirt.git/commit
virJSONParserHandle*: Refactor memory cleanup and drop NULL checks
authorPeter Krempa <pkrempa@redhat.com>
Fri, 12 Feb 2021 14:25:34 +0000 (15:25 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Sat, 20 Feb 2021 12:26:38 +0000 (13:26 +0100)
commit395ecd7a8ce26c437755ffa2fb64af947c2c5d5d
tree4946fac671b641f08aa8fd2664c6ca0f5efb2b5d
parentad3f3bd04859f2b3cce19c4384755877bfe5491c
virJSONParserHandle*: Refactor memory cleanup and drop NULL checks

virJSONValueNew* won't return error nowadays so NULL checks are not
necessary. The memory can be cleared via g_autoptr.

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