Re: [PATCH] tests/qtest/migration-test: Use g_autofree to avoid leaks on error paths

2021-05-11 Thread Dr. David Alan Gilbert
* Peter Maydell (peter.mayd...@linaro.org) wrote: > 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. > > Th

Re: [PATCH] tests/qtest/migration-test: Use g_autofree to avoid leaks on error paths

2021-05-10 Thread Dr. David Alan Gilbert
* Peter Maydell (peter.mayd...@linaro.org) wrote: > 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. > > Th

[PATCH] tests/qtest/migration-test: Use g_autofree to avoid leaks on error paths

2021-05-06 Thread Peter Maydell
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