1 /* $NetBSD: emalloc.c,v 1.2 2003/12/04 16:23:36 drochner Exp $ */
4 * emalloc - return new memory obtained from the system. Belch if none.
7 #include "ntp_malloc.h"
8 #include "ntp_syslog.h"
9 #include "ntp_stdlib.h"
11 #if defined SYS_WINNT && defined DEBUG
15 #if defined SYS_WINNT && defined DEBUG
26 if ((mem
= (char *)_malloc_dbg(size
, _NORMAL_BLOCK
, filename
, line
)) == 0) {
27 msyslog(LOG_ERR
, "Exiting: No more memory!");
42 if ((mem
= (char *)malloc(size
)) == 0) {
43 msyslog(LOG_ERR
, "Exiting: No more memory!");