Re: [PATCH] tests/9pfs: use g_autofree where possible

2021-11-17 Thread Christian Schoenebeck
On Dienstag, 16. November 2021 17:40:08 CET Christian Schoenebeck wrote: > Signed-off-by: Christian Schoenebeck > --- > tests/qtest/virtio-9p-test.c | 86 +++- > 1 file changed, 25 insertions(+), 61 deletions(-) > > diff --git a/tests/qtest/virtio-9p-test.c

Re: [PATCH] tests/9pfs: use g_autofree where possible

2021-11-16 Thread Greg Kurz
On Tue, 16 Nov 2021 20:59:32 +0100 Christian Schoenebeck wrote: > On Dienstag, 16. November 2021 19:12:21 CET Greg Kurz wrote: > > On Tue, 16 Nov 2021 17:40:08 +0100 > > > > Christian Schoenebeck wrote: > > > Signed-off-by: Christian Schoenebeck > > > --- > > > > Since g_autofree is scope

Re: [PATCH] tests/9pfs: use g_autofree where possible

2021-11-16 Thread Christian Schoenebeck
On Dienstag, 16. November 2021 19:12:21 CET Greg Kurz wrote: > On Tue, 16 Nov 2021 17:40:08 +0100 > > Christian Schoenebeck wrote: > > Signed-off-by: Christian Schoenebeck > > --- > > Since g_autofree is scope based, I guess you could also convert this > snippet, that appears twice in the file

Re: [PATCH] tests/9pfs: use g_autofree where possible

2021-11-16 Thread Greg Kurz
On Tue, 16 Nov 2021 17:40:08 +0100 Christian Schoenebeck wrote: > Signed-off-by: Christian Schoenebeck > --- Since g_autofree is scope based, I guess you could also convert this snippet, that appears twice in the file BTW : for (int i = 0; i < QTEST_V9FS_SYNTH_READDIR_NFILES; ++i) {

[PATCH] tests/9pfs: use g_autofree where possible

2021-11-16 Thread Christian Schoenebeck
Signed-off-by: Christian Schoenebeck --- tests/qtest/virtio-9p-test.c | 86 +++- 1 file changed, 25 insertions(+), 61 deletions(-) diff --git a/tests/qtest/virtio-9p-test.c b/tests/qtest/virtio-9p-test.c index 41fed41de1..11861aaf7d 100644 ---