one more error path that didn't free a lock.

This commit is contained in:
mlelstv 2011-11-21 09:46:19 +00:00
parent 0114172335
commit 86bf846403
1 changed files with 4 additions and 2 deletions

View File

@ -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;
}