Re: [PATCH v4 5/5] qemu-ga: Replace g_new0() with g_autoptr()

2024-10-27 Thread Dehan Meng
Thank you for reviewing, I'll summarize all of the patches. On Fri, Oct 25, 2024 at 8:50 PM Daniel P. Berrangé wrote: > On Tue, Oct 22, 2024 at 10:29:48PM +0800, Dehan Meng wrote: > > Replace g_new0() with g_autoptr() to simplify the code > > > > Signed-off-by: Dehan Meng > > --- > > qga/comma

Re: [PATCH v4 5/5] qemu-ga: Replace g_new0() with g_autoptr()

2024-10-25 Thread Daniel P . Berrangé
On Tue, Oct 22, 2024 at 10:29:48PM +0800, Dehan Meng wrote: > Replace g_new0() with g_autoptr() to simplify the code > > Signed-off-by: Dehan Meng > --- > qga/commands-linux.c | 16 ++-- > 1 file changed, 6 insertions(+), 10 deletions(-) > > diff --git a/qga/commands-linux.c b/qga/c

[PATCH v4 5/5] qemu-ga: Replace g_new0() with g_autoptr()

2024-10-22 Thread Dehan Meng
Replace g_new0() with g_autoptr() to simplify the code Signed-off-by: Dehan Meng --- qga/commands-linux.c | 16 ++-- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/qga/commands-linux.c b/qga/commands-linux.c index 9fb31956b4..ee4f345938 100644 --- a/qga/commands-linux