qemu-e2k/tests
Peter Maydell 2ed765fdee tests/qtest/migration-test: Use g_autofree to avoid leaks on error paths
Coverity notices that several places in the migration-test code fail
to free memory in error-exit paths.  This is pretty unimportant in
test case code, but we can avoid having to manually free the memory
entirely by using g_autofree.

The places where Coverity spotted a leak were relating to early exits
not freeing 'uri' in test_precopy_unix(), do_test_validate_uuid(),
migrate_postcopy_prepare() and test_migrate_auto_converge().  This
patch converts all the string-allocation in the test code to
g_autofree for consistency.

Fixes: Coverity CID 1432313, 1432315, 1432352, 1432364
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-Id: <20210506185819.9010-1-peter.maydell@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
2021-05-14 12:37:00 +02:00
..
acceptance tests/acceptance: Test ast2600 machine 2021-05-01 10:03:51 +02:00
bench
data tests: acpi: update expected blobs 2021-03-22 18:58:19 -04:00
decode decodetree: Extend argument set syntax to allow types 2021-05-01 11:45:35 -07:00
docker tests/docker/dockerfiles: Add ccache to containers where it was missing 2021-05-14 12:24:20 +02:00
fp
guest-debug
image-fuzzer
include
keys
migration tests/migration: fix parameter of auto-converge migration 2021-04-07 18:37:56 +01:00
multiboot
perf/block/qcow2
plugin
qapi-schema qapi/expr.py: Check type of union and alternate 'data' member 2021-04-30 12:59:54 +02:00
qemu-iotests block: Drop the sheepdog block driver 2021-05-12 17:42:23 +02:00
qtest tests/qtest/migration-test: Use g_autofree to avoid leaks on error paths 2021-05-14 12:37:00 +02:00
rocker
tcg Drop the deprecated lm32 target 2021-05-12 18:20:25 +02:00
tsan
uefi-test-tools
unit block: adapt bdrv_append() for inserting filters 2021-04-30 12:27:48 +02:00
vm FreeBSD: Upgrade to 12.2 release 2021-03-20 06:33:17 +01:00
vmstate-static-checker-data hw: Replace anti-social QOM type names 2021-03-19 15:18:43 +01:00
check-block.sh
dbus-vmstate-daemon.sh
Makefile.include
meson.build
requirements.txt
test-qht-par.c
vhost-user-bridge.c