[PATCH 3/7] cputest: Avoid use of temporary variable in DO_TEST macro

Ján Tomko jtomko at redhat.com
Thu Jun 11 09:58:20 UTC 2020


On a Thursday in 2020, Peter Krempa wrote:
>Use g_free directly to free the returned pointer from
>virTestLogContentAndReset rather than store it in a temp variable.
>

Needed back when VIR_FREE was mandated in:
8fe454ce90899945b1d16674668a0208657b6e61

>Signed-off-by: Peter Krempa <pkrempa at redhat.com>
>---
> tests/cputest.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20200611/fc446e99/attachment-0001.sig>


More information about the libvir-list mailing list