MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ngx_alloc

Function ngx_alloc

app/nginx-1.28.0/src/os/unix/ngx_alloc.c:17–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15
16
17void *
18ngx_alloc(size_t size, ngx_log_t *log)
19{
20 void *p;
21
22 p = malloc(size);
23 if (p == NULL) {
24 ngx_log_error(NGX_LOG_EMERG, log, ngx_errno,
25 "malloc(%uz) failed", size);
26 }
27
28 ngx_log_debug2(NGX_LOG_DEBUG_ALLOC, log, 0, "malloc: %p:%uz", p, size);
29
30 return p;
31}
32
33
34void *

Callers 15

ngx_init_setproctitleFunction · 0.70
ngx_callocFunction · 0.70
ngx_http_dav_copy_dirFunction · 0.50
ngx_http_v3_insertFunction · 0.50
ngx_http_v3_set_capacityFunction · 0.50
ngx_ext_rename_fileFunction · 0.50

Calls 2

mallocFunction · 0.85
ngx_log_errorFunction · 0.85

Tested by

no test coverage detected