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

[Xen-changelog] [xen-unstable] tools/libxc: Do not crash freeing logger on xc_interface_open error path



# HG changeset patch
# User Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
# Date 1277740612 -3600
# Node ID c81c215965f51a6a6ff5a619c6f5f9b9d3375aa0
# Parent  a37de3ca134140b23797bbda6967ab0db670225a
tools/libxc: Do not crash freeing logger on xc_interface_open error path

libxc could sometimes free the logger which xl created.
Thanks to report from Yang Hongyang <yanghy@xxxxxxxxxxxxxx>.

Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
 tools/libxc/xc_private.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r a37de3ca1341 -r c81c215965f5 tools/libxc/xc_private.c
--- a/tools/libxc/xc_private.c  Mon Jun 28 16:49:45 2010 +0100
+++ b/tools/libxc/xc_private.c  Mon Jun 28 16:56:52 2010 +0100
@@ -52,7 +52,7 @@ xc_interface *xc_interface_open(xentooll
     return xch;
 
  err:
-    if (xch) xtl_logger_destroy(xch->error_handler);
+    if (xch) xtl_logger_destroy(xch->error_handler_tofree);
     if (xch != &xch_buf) free(xch);
     return 0;
 }

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.