Peter Krempa ea520f6b67 util: json: Fix freeing of objects appended to virJSONValue
It was not possible to determine whether virJSONValueObjectAddVArgs and
the functions using it would consume a virJSONValue or not when used
with the 'a' or 'A' modifier depending on when the loop failed.

Fix this by passing in a pointer to the pointer so that it can be
cleared once it's successfully consumed and the callers don't have to
second-guess leaving a chance of leaking or double freeing the value
depending on the ordering.

Fix all callers to pass a double pointer too.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
2018-04-03 13:34:33 +02:00
..
2017-11-03 13:24:12 +01:00
2017-10-16 10:29:32 -04:00
2017-05-02 17:27:13 +01:00
2017-11-03 13:24:12 +01:00
2017-01-25 09:18:49 +01:00
2017-05-26 20:00:51 +04:00
2017-07-26 15:31:25 +02:00
2017-07-26 15:31:25 +02:00
2017-01-04 12:47:01 +01:00
2017-05-16 16:48:30 +02:00
2017-11-03 13:24:12 +01:00
2017-06-12 19:11:30 -04:00
2018-04-01 17:42:29 +02:00
2018-03-12 16:30:49 +01:00
2017-11-03 13:24:12 +01:00
2018-03-14 12:46:26 +01:00
2018-01-11 18:53:04 +01:00
2018-01-11 18:53:04 +01:00
2017-12-05 11:28:19 +01:00
2016-12-15 09:25:16 +01:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00