Module Name: src
Committed By: martin
Date: Fri Nov 18 08:20:13 UTC 2011
Modified Files:
src/lib/libc/gdtoa: misc.c
Log Message:
Release dtoa lock before returning, pointed out by enami.
To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/lib/libc/gdtoa/misc.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/gdtoa/misc.c
diff -u src/lib/libc/gdtoa/misc.c:1.9 src/lib/libc/gdtoa/misc.c:1.10
--- src/lib/libc/gdtoa/misc.c:1.9 Fri Nov 18 04:17:23 2011
+++ src/lib/libc/gdtoa/misc.c Fri Nov 18 08:20:13 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: misc.c,v 1.9 2011/11/18 04:17:23 christos Exp $ */
+/* $NetBSD: misc.c,v 1.10 2011/11/18 08:20:13 martin Exp $ */
/****************************************************************
@@ -444,8 +444,10 @@ pow5mult
ACQUIRE_DTOA_LOCK(1);
if (!(p51 = p5->next)) {
p51 = p5->next = mult(p5,p5);
- if (p51 == NULL)
+ if (p51 == NULL) {
+ FREE_DTOA_LOCK(1);
return NULL;
+ }
p51->next = 0;
}
FREE_DTOA_LOCK(1);