On 2023/8/24 13:16, Michael Tokarev wrote:
23.08.2023 10:47, alloc.yo...@outlook.com wrote:
From: "alloc.young"
Fix memory leak in hmp_info_vcpu_dirty_limit,use g_autoptr
handle memory deallocation, alse use g_free to match g_malloc
&& g_new functions.
"..use g_autoptr TO handle.." ("to"
23.08.2023 10:47, alloc.yo...@outlook.com wrote:
From: "alloc.young"
Fix memory leak in hmp_info_vcpu_dirty_limit,use g_autoptr
handle memory deallocation, alse use g_free to match g_malloc
&& g_new functions.
"..use g_autoptr TO handle.." ("to" is missing).
"alse" - I guess should be
From: "alloc.young"
Fix memory leak in hmp_info_vcpu_dirty_limit,use g_autoptr
to handle memory deallocation.
Signed-off-by: alloc.young
Reviewed-by: Yong Huang
---
v1->v2
drop g_free, just focus on fix memory leak issue
---
softmmu/dirtylimit.c | 16 +++-
1 file changed, 7
发件人: Yong Huang
发送时间: 2023年8月24日 8:31
收件人: alloc.yo...@outlook.com
抄送: qemu-devel@nongnu.org
主题: Re: [PATCH] softmmu: Fix dirtylimit memory leak
On Wed, Aug 23, 2023 at 3:48 PM
mailto:alloc.yo...@outlook.com>> wrote:
From: "
On Wed, Aug 23, 2023 at 3:48 PM wrote:
> From: "alloc.young"
>
> Fix memory leak in hmp_info_vcpu_dirty_limit,use g_autoptr
> handle memory deallocation, alse use g_free to match g_malloc
> && g_new functions.
>
> Signed-off-by: alloc.young
> ---
> softmmu/dirtylimit.c | 26
From: "alloc.young"
Fix memory leak in hmp_info_vcpu_dirty_limit,use g_autoptr
handle memory deallocation, alse use g_free to match g_malloc
&& g_new functions.
Signed-off-by: alloc.young
---
softmmu/dirtylimit.c | 26 --
1 file changed, 12 insertions(+), 14