Re: [RFC 3/4] gqa-win: get_pci_info: Add g_autofree for few variables

2021-08-10 Thread Konstantin Kostiuk
Hi Philippe, On Mon, Aug 9, 2021 at 1:46 PM Philippe Mathieu-Daudé wrote: > Hi Kostiantyn, > > On 8/9/21 11:48 AM, Kostiantyn Kostiuk wrote: > > Signed-off-by: Kostiantyn Kostiuk > > I'm not sure what you are trying to do here, fix a memory leak? > Yes. This set of patches fix a memory leak. T

Re: [RFC 3/4] gqa-win: get_pci_info: Add g_autofree for few variables

2021-08-09 Thread Philippe Mathieu-Daudé
Hi Kostiantyn, On 8/9/21 11:48 AM, Kostiantyn Kostiuk wrote: > Signed-off-by: Kostiantyn Kostiuk I'm not sure what you are trying to do here, fix a memory leak? > --- > qga/commands-win32.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/qga/commands-win32.c b/qga

[RFC 3/4] gqa-win: get_pci_info: Add g_autofree for few variables

2021-08-09 Thread Kostiantyn Kostiuk
Signed-off-by: Kostiantyn Kostiuk --- qga/commands-win32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qga/commands-win32.c b/qga/commands-win32.c index 724ce76a0e..a8a601776d 100644 --- a/qga/commands-win32.c +++ b/qga/commands-win32.c @@ -539,9 +539,9 @@ static Guest