mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-22 14:49:20 -04:00
MEMUNLOCK called too early
This commit is contained in:
parent
d30621b91e
commit
f46b97e438
1 changed files with 4 additions and 3 deletions
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
|
||||
#if !defined(LINT) && !defined(CODECENTER)
|
||||
static const char rcsid[] = "$Id: memcluster.c,v 1.3.206.5 2005/07/28 07:43:20 marka Exp $";
|
||||
static const char rcsid[] = "$Id: memcluster.c,v 1.3.206.6 2005/08/22 01:34:30 marka Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include "port_before.h"
|
||||
|
|
@ -194,9 +194,10 @@ __memget_record(size_t size, const char *file, int line) {
|
|||
UNUSED(line);
|
||||
#endif
|
||||
if (freelists == NULL) {
|
||||
MEMUNLOCK;
|
||||
if (meminit(0, 0) == -1)
|
||||
if (meminit(0, 0) == -1) {
|
||||
MEMUNLOCK;
|
||||
return (NULL);
|
||||
}
|
||||
}
|
||||
if (size == 0U) {
|
||||
MEMUNLOCK;
|
||||
|
|
|
|||
Loading…
Reference in a new issue