Re: [PATCH 3/4] virpcivpdtest: Fix potential double-free()

2022-02-01 Thread Erik Skultety
On Mon, Jan 31, 2022 at 03:53:41PM +0100, Michal Privoznik wrote: > Inside the testPCIVPDResourceCustomCompareIndex() function we > have two variables @a and @b, both marked as g_autoptr(). Then, > towards the end of the function b->value is freed and set to > a->value. This is to make sure >

[PATCH 3/4] virpcivpdtest: Fix potential double-free()

2022-01-31 Thread Michal Privoznik
Inside the testPCIVPDResourceCustomCompareIndex() function we have two variables @a and @b, both marked as g_autoptr(). Then, towards the end of the function b->value is freed and set to a->value. This is to make sure virPCIVPDResourceCustomCompareIndex() works correctly even if ->value member is