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

[Xen-changelog] [xen-unstable] xenstore: Fix error path broken by c/s 17816



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1213103840 -3600
# Node ID 57b8c74c35ef682838ad3c93974e740bea3ba40d
# Parent  f70dff36213b0a95b9b8b2fc821ab9850c3efc70
xenstore: Fix error path broken by c/s 17816

Signed-off-by: Christoph Egger <Christoph.Egger@xxxxxxx>
---
 tools/xenstore/hashtable.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -r f70dff36213b -r 57b8c74c35ef tools/xenstore/hashtable.c
--- a/tools/xenstore/hashtable.c        Tue Jun 10 14:15:53 2008 +0100
+++ b/tools/xenstore/hashtable.c        Tue Jun 10 14:17:20 2008 +0100
@@ -57,9 +57,9 @@ create_hashtable(unsigned int minsize,
     h->loadlimit    = (unsigned int)(((uint64_t)size * max_load_factor) / 100);
     return h;
 
+err1:
+   free(h);
 err0:
-   free(h);
-err1:
    return NULL;
 }
 

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