HttpHeaderDeinit
Description
User-facing deinit. Releases the backing storage owned by header->key and header->value, then zeros the struct.
Success
Returns to the caller. *header is zeroed.
Failure
Aborts via LOG_FATAL when header is NULL.
Usage example (Cross-references)
Usage examples (Cross-references)
- In
Http.c:19:
// ---------------------------------------------------------------------------
void HttpHeaderDeinit(HttpHeader *header) {
if (!header) {
LOG_FATAL("invalid arguments");- In
Http.c:163:
if (cursor == line_start) {
LOG_ERROR("failed to parse header line");
HttpHeaderDeinit(&hh);
return in;
}- In
Http.c:168:
if (!VecPushBackL(&req->headers, hh)) {
HttpHeaderDeinit(&hh);
LOG_ERROR("failed to push header");
return in;- In
Http.Leak.c:51:
// R-push deep-copied into the vec and left `hh` owning its own storage;
// reclaim the source so only the vec's deep copies remain live.
HttpHeaderDeinit(&hh);
ok = ok && (DebugAllocatorLiveCount(&dbg) > 0);
Last updated on