Greg Kurz a1a6bbde4f xics: fix several error leaks
If object_property_get_link() fails then it allocates an error, which
must be freed before returning. The error_get_pretty() function is
merely an accessor to the error message and doesn't free anything.

The error.h header indicates how to do it right:

 * Pass an existing error to the caller with the message modified:
 *     error_propagate(errp, err);
 *     error_prepend(errp, "Could not frobnicate '%s': ", name);

Signed-off-by: Greg Kurz <groug@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2017-09-15 10:29:48 +10:00
..
2016-10-04 13:28:07 +01:00
2017-08-31 12:29:07 +02:00
2017-09-08 16:15:17 +03:00
2017-08-02 18:30:13 -03:00
2017-09-08 09:30:55 +10:00
2017-08-10 14:33:43 +01:00
2017-09-15 10:29:48 +10:00
2016-05-18 15:04:27 +03:00
2016-01-29 15:07:25 +00:00
2017-08-30 18:23:26 +02:00
2017-09-04 18:41:01 +01:00
2017-08-31 12:29:07 +02:00
2016-10-28 18:17:24 +03:00
2017-09-15 10:29:48 +10:00
2017-08-30 18:23:25 +02:00