mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
Commitd0193c6d67introduced checking for the return value of printf_info_one_json(), but failed to remove a further check down, which now Coverity complains is dead code. The correct fix is to make the call to json_object_array_add() conditional on printf_info_one_json() having been successful, so that the further call to libxl_domain_config_dispose() is not avoided. CID: 1667251 Fixes:d0193c6d67("tools/xl: check return value of printf_info_one_json() in list_domains_details()") Signed-off-by: Roger Pau Monné <roger.pau@citrix.com> Release-Acked-By: Oleksii Kurochko <oleksii.kurochko@gmail.com> Reviewed-by: Anthony PERARD <anthony.perard@vates.tech>