WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] xenstore: Fix error path broken by c/s 17816
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 10 Jun 2008 11:30:10 -0700
Delivery-date: Tue, 10 Jun 2008 11:30:09 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] xenstore: Fix error path broken by c/s 17816, Xen patchbot-unstable <=