Module Name: src
Committed By: mlelstv
Date: Mon Nov 21 09:46:20 UTC 2011
Modified Files:
src/lib/libc/gdtoa: misc.c
Log Message:
one more error path that didn't free a lock.
To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 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.10 src/lib/libc/gdtoa/misc.c:1.11
--- src/lib/libc/gdtoa/misc.c:1.10 Fri Nov 18 08:20:13 2011
+++ src/lib/libc/gdtoa/misc.c Mon Nov 21 09:46:19 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: misc.c,v 1.10 2011/11/18 08:20:13 martin Exp $ */
+/* $NetBSD: misc.c,v 1.11 2011/11/21 09:46:19 mlelstv Exp $ */
/****************************************************************
@@ -76,8 +76,10 @@ Balloc
else
rv = (Bigint*)MALLOC(len*sizeof(double));
#endif
- if (rv == NULL)
+ if (rv == NULL) {
+ FREE_DTOA_LOCK(0);
return NULL;
+ }
rv->k = k;
rv->maxwds = x;
}