qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH V5_resend 1/7] numa: Fixed the memory leak of nu


From: Igor Mammedov
Subject: Re: [Qemu-devel] [PATCH V5_resend 1/7] numa: Fixed the memory leak of numa error message
Date: Mon, 26 Nov 2018 14:10:26 +0100

On Tue, 20 Nov 2018 15:48:06 +0800
Zhang Yi <address@hidden> wrote:

> object_get_canonical_path_component() returns a string which
> must be freed using g_free().
> 
> Signed-off-by: Zhang Yi <address@hidden>

Reviewed-by: Igor Mammedov <address@hidden>

> ---
>  numa.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/numa.c b/numa.c
> index 50ec016..3875e1e 100644
> --- a/numa.c
> +++ b/numa.c
> @@ -533,6 +533,7 @@ void memory_region_allocate_system_memory(MemoryRegion 
> *mr, Object *owner,
>              error_report("memory backend %s is used multiple times. Each "
>                           "-numa option must use a different memdev value.",
>                           path);
> +            g_free(path);
>              exit(1);
>          }
>  




reply via email to

[Prev in Thread] Current Thread [Next in Thread]