|
From: | Daniel Henrique Barboza |
Subject: | Re: [PATCH 03/19] target/riscv: introduce riscv_cpu_add_misa_properties() |
Date: | Mon, 27 Mar 2023 15:59:32 -0300 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 |
On 3/27/23 15:43, Richard Henderson wrote:
On 3/27/23 05:42, Daniel Henrique Barboza wrote:+ g_autofree char *name = g_strdup_printf("%s", misa_cfg->name); + g_autofree char *desc = g_strdup_printf("%s", misa_cfg->description);What is the point of this? It would seem that you could simply pass the original string literals to object_property_*.
Yeah, it appears that every other object_property_add() is being called using the literals without dealing with g_autofree. I'll change it in v2. Daniel
r~
[Prev in Thread] | Current Thread | [Next in Thread] |