Mercurial > hg > nginx
comparison src/core/ngx_alloc.c @ 6:669801705ab1
nginx-0.0.1-2002-08-26-19:18:19 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 26 Aug 2002 15:18:19 +0000 |
parents | c5f071d376e5 |
children | b5481d6fbbd4 |
comparison
equal
deleted
inserted
replaced
5:62b1a364857c | 6:669801705ab1 |
---|---|
10 { | 10 { |
11 void *p; | 11 void *p; |
12 | 12 |
13 p = malloc(size); | 13 p = malloc(size); |
14 if (p == NULL) | 14 if (p == NULL) |
15 ngx_log_error(NGX_LOG_ALERT, log, ngx_errno, | 15 ngx_log_error(NGX_LOG_EMERG, log, ngx_errno, |
16 "ngx_alloc: malloc() %d bytes failed", size); | 16 "malloc() %d bytes failed", size); |
17 return p; | 17 return p; |
18 } | 18 } |
19 | 19 |
20 void *ngx_calloc(size_t size, ngx_log_t *log) | 20 void *ngx_calloc(size_t size, ngx_log_t *log) |
21 { | 21 { |