[libvirt PATCH] virvhba.c: use g_autofree
mprivozn at redhat.com
Mon Oct 17 08:52:46 UTC 2022
On 10/16/22 12:47, ttxine wrote:
> Change strings to use g_autofree.
> Signed-off-by: Maxim Kostin <ttxinee at outlook.com>
> src/util/virvhba.c | 21 +++++++--------------
> 1 file changed, 7 insertions(+), 14 deletions(-)
We can do a bit more. Some variables are only used within loop bodies.
Those can be declared inside of their respective bodies and marked as
g_autofree. After this, some labels contain nothing just a return
statement, so those can be dropped too.
I'm fixing those places and pushing. Congratulations on your first
Reviewed-by: Michal Privoznik <mprivozn at redhat.com>
More information about the libvir-list