Re: [PATCH] qtest: do not return freed argument vector from qtest_rsp

2020-11-20 Thread Markus Armbruster
Paolo Bonzini writes: > If expected_args is 0, qtest frees the argument vector and then returns it > nevertheless. Coverity complains; in practice this is not an issue because > expected_args == 0 means that the caller is not interested in the argument > vector, but it would be a potential

Re: [PATCH] qtest: do not return freed argument vector from qtest_rsp

2020-11-20 Thread Thomas Huth
On 20/11/2020 08.31, Paolo Bonzini wrote: > If expected_args is 0, qtest frees the argument vector and then returns it > nevertheless. Coverity complains; in practice this is not an issue because > expected_args == 0 means that the caller is not interested in the argument > vector, but it would

[PATCH] qtest: do not return freed argument vector from qtest_rsp

2020-11-19 Thread Paolo Bonzini
If expected_args is 0, qtest frees the argument vector and then returns it nevertheless. Coverity complains; in practice this is not an issue because expected_args == 0 means that the caller is not interested in the argument vector, but it would be a potential problem if somebody wanted to add