[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH V9 1/6] numa: Fixed the memory leak of numa error me
From: |
Zhang Yi |
Subject: |
[Qemu-devel] [PATCH V9 1/6] numa: Fixed the memory leak of numa error message |
Date: |
Wed, 16 Jan 2019 16:10:17 +0800 |
object_get_canonical_path_component() returns a string which
must be freed using g_free().
Signed-off-by: Zhang Yi <address@hidden>
Reviewed-by: Pankaj gupta <address@hidden>
Reviewed-by: Igor Mammedov <address@hidden>
Reviewed-by: Eduardo Habkost <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);
}
--
2.7.4
[Qemu-devel] [PATCH V9 3/6] util/mmap-alloc: switch 'shared' to 'flags' parameter, Zhang Yi, 2019/01/16
[Qemu-devel] [PATCH V9 6/6] docs: Added MAP_SYNC documentation, Zhang Yi, 2019/01/16