Module Name: src Committed By: christos Date: Fri Nov 18 04:17:23 UTC 2011
Modified Files: src/lib/libc/gdtoa: misc.c Log Message: unlock before returning on error, thanks enami. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 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.8 src/lib/libc/gdtoa/misc.c:1.9 --- src/lib/libc/gdtoa/misc.c:1.8 Thu Nov 17 21:38:17 2011 +++ src/lib/libc/gdtoa/misc.c Thu Nov 17 23:17:23 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: misc.c,v 1.8 2011/11/18 02:38:17 christos Exp $ */ +/* $NetBSD: misc.c,v 1.9 2011/11/18 04:17:23 christos Exp $ */ /**************************************************************** @@ -415,8 +415,10 @@ pow5mult ACQUIRE_DTOA_LOCK(1); if (!(p5 = p5s)) { p5 = p5s = i2b(625); - if (p5 == NULL) + if (p5 == NULL) { + FREE_DTOA_LOCK(1); return NULL; + } p5->next = 0; } FREE_DTOA_LOCK(1);