* [PATCH][TOOLS] xenstore: Fix error path I broke in c/s 17816
@ 2008-06-10 13:10 Christoph Egger
0 siblings, 0 replies; only message in thread
From: Christoph Egger @ 2008-06-10 13:10 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1: Type: text/plain, Size: 595 bytes --]
Hi!
Attached patch fixes error path I broke in xenstore's hash allocation
(c/s 17816). Sorry for this.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
--
AMD Saxony, Dresden, Germany
Operating System Research Center
Legal Information:
AMD Saxony Limited Liability Company & Co. KG
Sitz (Geschäftsanschrift):
Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland
Registergericht Dresden: HRA 4896
vertretungsberechtigter Komplementär:
AMD Saxony LLC (Sitz Wilmington, Delaware, USA)
Geschäftsführer der AMD Saxony LLC:
Dr. Hans-R. Deppe, Thomas McCoy
[-- Attachment #2: tools_xenstore.diff --]
[-- Type: text/x-diff, Size: 400 bytes --]
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;
}
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-06-10 13:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-10 13:10 [PATCH][TOOLS] xenstore: Fix error path I broke in c/s 17816 Christoph Egger
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.