Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/gdtoa Release dtoa lock before returning, pointed o...
details: https://anonhg.NetBSD.org/src/rev/e4f09206adfe
branches: trunk
changeset: 771285:e4f09206adfe
user: martin <martin%NetBSD.org@localhost>
date: Fri Nov 18 08:20:13 2011 +0000
description:
Release dtoa lock before returning, pointed out by enami.
diffstat:
lib/libc/gdtoa/misc.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r fa2bd8a0bae2 -r e4f09206adfe lib/libc/gdtoa/misc.c
--- a/lib/libc/gdtoa/misc.c Fri Nov 18 06:01:50 2011 +0000
+++ b/lib/libc/gdtoa/misc.c Fri Nov 18 08:20:13 2011 +0000
@@ -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 @@
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);
Home |
Main Index |
Thread Index |
Old Index