forked from pool/libvirt
0a26adabe1
0e671a16-CVE-2013-4239.patch bnc#834598 - Upstream patches to fix dumpxml in legacy Xen driver 9d0557b9-legacy-xen-double-free.patch, d7a45bf2-legacy-xen-dumpxml.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=294
25 lines
812 B
Diff
25 lines
812 B
Diff
commit 9d0557b9655fe4a3f31af2e1cc2f33de8acfaa7d
|
|
Author: Stefan Bader <stefan.bader@canonical.com>
|
|
Date: Wed Jul 31 11:59:21 2013 +0200
|
|
|
|
xen: Avoid double free of virDomainDef in xenDaemonCreateXML
|
|
|
|
The virDomainDef is allocated by the caller and also used after
|
|
calling to xenDaemonCreateXML. So it must not get freed by the
|
|
callee.
|
|
|
|
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
|
|
|
|
Index: libvirt-1.1.1/src/xen/xend_internal.c
|
|
===================================================================
|
|
--- libvirt-1.1.1.orig/src/xen/xend_internal.c
|
|
+++ libvirt-1.1.1/src/xen/xend_internal.c
|
|
@@ -2171,7 +2171,6 @@ xenDaemonCreateXML(virConnectPtr conn, v
|
|
if (xenDaemonDomainResume(conn, def) < 0)
|
|
goto error;
|
|
|
|
- virDomainDefFree(def);
|
|
return 0;
|
|
|
|
error:
|