diff options
author | Zhang Yi <yi.z.zhang@linux.intel.com> | 2019-01-02 13:25:56 +0800 |
---|---|---|
committer | Eduardo Habkost <ehabkost@redhat.com> | 2019-01-28 15:52:05 -0200 |
commit | 2920bd644e8c2d21636a959a0cc717600913ad03 (patch) | |
tree | be11a96a82994eb814fef34a99da406165ac9e5e /numa.c | |
parent | 5f39a91dbd9a186edb999afd4d17524f4b1da14f (diff) | |
download | qemu-2920bd644e8c2d21636a959a0cc717600913ad03.zip qemu-2920bd644e8c2d21636a959a0cc717600913ad03.tar.gz qemu-2920bd644e8c2d21636a959a0cc717600913ad03.tar.bz2 |
numa: Fixed the memory leak of numa error message
object_get_canonical_path_component() returns a string which
must be freed using g_free().
Signed-off-by: Zhang Yi <yi.z.zhang@linux.intel.com>
Reviewed-by: Pankaj gupta <pagupta@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <51ba6d7d0333a5517d824a870dd20887156dd15a.1546399191.git.yi.z.zhang@linux.intel.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'numa.c')
-rw-r--r-- | numa.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); } |