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

[Xen-changelog] Fixed domain refcounting bug (found by inspection)



# HG changeset patch
# User unknown@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# Node ID dd0e2e9fa4e65a4809f91523e8150b6afd586b26
# Parent  c4fc28fb580a14fef76ee9ccbcc32967ffecd9ab
Fixed domain refcounting bug (found by inspection)

diff -r c4fc28fb580a -r dd0e2e9fa4e6 xen/acm/acm_core.c
--- a/xen/acm/acm_core.c        Tue Nov  8 10:31:16 2005
+++ b/xen/acm/acm_core.c        Tue Nov  8 10:36:37 2005
@@ -254,7 +254,10 @@
         return ACM_NULL_POINTER_ERROR;
     }
     if ((ssid = xmalloc(struct acm_ssid_domain)) == NULL)
+    {
+        put_domain(subj);
         return ACM_INIT_SSID_ERROR;
+    }
 
     ssid->datatype       = DOMAIN;
     ssid->subject        = subj;

_______________________________________________
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®.