938d7e0b24
- libxl: more fixes for dom0 maxmem setting 4ab0c959-libxl-mem-leak.patch, 2dc1cf19-libxl-double-free.patch bsc#1017762 OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=584
28 lines
908 B
Diff
28 lines
908 B
Diff
commit 2dc1cf19dbaf648662fbf3c810db65ddcf5d0444
|
|
Author: Jim Fehlig <jfehlig@suse.com>
|
|
Date: Wed Feb 15 10:45:27 2017 -0700
|
|
|
|
libxl: fix potential double free in libxlDriverGetDom0MaxmemConf
|
|
|
|
Commit 4ab0c959 fixed a memory leak in libxlDriverGetDom0MaxmemConf
|
|
but introduced a potential double free of mem_tokens
|
|
|
|
*** Error in `/usr/sbin/libvirtd': double free or corruption (out):
|
|
0x00007fffc808cfd0 ***
|
|
|
|
Avoid double free by setting mem_tokens to NULL after calling
|
|
virStringListFree.
|
|
|
|
Index: libvirt-3.0.0/src/libxl/libxl_conf.c
|
|
===================================================================
|
|
--- libvirt-3.0.0.orig/src/libxl/libxl_conf.c
|
|
+++ libvirt-3.0.0/src/libxl/libxl_conf.c
|
|
@@ -1623,6 +1623,7 @@ libxlDriverGetDom0MaxmemConf(libxlDriver
|
|
}
|
|
}
|
|
virStringListFree(mem_tokens);
|
|
+ mem_tokens = NULL;
|
|
}
|
|
|
|
physmem:
|