From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Egger Subject: [PATCH][TOOLS] xenstore: Fix error path I broke in c/s 17816 Date: Tue, 10 Jun 2008 15:10:48 +0200 Message-ID: <200806101510.48576.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_Y1nTIS964mjINyZ" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --Boundary-00=_Y1nTIS964mjINyZ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi! Attached patch fixes error path I broke in xenstore's hash allocation (c/s 17816). Sorry for this. Signed-off-by: Christoph Egger =2D-=20 AMD Saxony, Dresden, Germany Operating System Research Center Legal Information: AMD Saxony Limited Liability Company & Co. KG Sitz (Gesch=E4ftsanschrift): Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland Registergericht Dresden: HRA 4896 vertretungsberechtigter Komplement=E4r: AMD Saxony LLC (Sitz Wilmington, Delaware, USA) Gesch=E4ftsf=FChrer der AMD Saxony LLC: Dr. Hans-R. Deppe, Thomas McCoy --Boundary-00=_Y1nTIS964mjINyZ Content-Type: text/x-diff; charset="us-ascii"; name="tools_xenstore.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="tools_xenstore.diff" diff -r d77214a97e04 tools/xenstore/hashtable.c --- a/tools/xenstore/hashtable.c Tue Jun 10 13:50:31 2008 +0100 +++ b/tools/xenstore/hashtable.c Tue Jun 10 15:01:05 2008 +0200 @@ -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; } --Boundary-00=_Y1nTIS964mjINyZ Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --Boundary-00=_Y1nTIS964mjINyZ--