|
From: | Michael Tokarev |
Subject: | Re: [PATCH v3 3/3] linux-user/syscall.c: do_ppoll: eliminate large alloca |
Date: | Fri, 15 Sep 2023 11:08:45 +0300 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0 |
14.09.2023 14:07, Daniel P. Berrangé wrote: ..
This can be dropped with g_autofree usageYes, I know this, - this was deliberate choice. Personally I'm just too used to old-school explicit resource deallocations. Here, there's a single place where everything gets freed, so there's little reason to use fancy modern automatic deallocations. To my taste anyway.
I prefer auto-free, but I'm fine with this commit either way, so
After thinking about it more. Once these automatic helpers such as g_autofree pointers slip into peoples minds, there's much less attention being paid for freeing resources. So I'll go with the autofree variant, without explicit free.
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Thank you for the review! /mjt
[Prev in Thread] | Current Thread | [Next in Thread] |