chain = chain->next;
} else {
if ((tmp = evbuffer_chain_new(size)) == NULL) {
- event_warn("%s: out of memory\n", __func__);
+ event_warn("%s: out of memory", __func__);
goto done;
}
buffer = tmp->buffer;
n_to_copy = it.pos;
if ((line = mm_malloc(n_to_copy+1)) == NULL) {
- event_warn("%s: out of memory\n", __func__);
+ event_warn("%s: out of memory", __func__);
goto done;
}
if (use_sendfile) {
chain = evbuffer_chain_new(sizeof(struct evbuffer_chain_fd));
if (chain == NULL) {
- event_warn("%s: out of memory\n", __func__);
+ event_warn("%s: out of memory", __func__);
return (-1);
}
}
chain = evbuffer_chain_new(sizeof(struct evbuffer_chain_fd));
if (chain == NULL) {
- event_warn("%s: out of memory\n", __func__);
+ event_warn("%s: out of memory", __func__);
munmap(mapped, length);
return (-1);
}