diff options
| author | Greg Kurz | 2017-09-12 00:04:40 +0200 |
|---|---|---|
| committer | David Gibson | 2017-09-15 02:29:48 +0200 |
| commit | a1a6bbde4f6a29368f8f605cea2e73630ec1bc7c (patch) | |
| tree | 3df3df454f3c0aab4b8e0b7dca9439ff3a003016 /scripts/modules/module_block.py | |
| parent | vfio, spapr: Fix levels calculation (diff) | |
| download | qemu-a1a6bbde4f6a29368f8f605cea2e73630ec1bc7c.tar.gz qemu-a1a6bbde4f6a29368f8f605cea2e73630ec1bc7c.tar.xz qemu-a1a6bbde4f6a29368f8f605cea2e73630ec1bc7c.zip | |
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>
Diffstat (limited to 'scripts/modules/module_block.py')
0 files changed, 0 insertions, 0 deletions
