HttpResponseDeinit
Description
Release storage owned by response and zero the struct.
Success
Returns to the caller. *response is zeroed.
Failure
Aborts via LOG_FATAL when response is NULL.
Usage example (Cross-references)
Usage examples (Cross-references)
- In
Http.c:497:
}
void HttpResponseDeinit(HttpResponse *response) {
if (!response) {
LOG_FATAL("invalid arguments");- In
Http.Leak.c:125:
StrDeinit(&first);
StrDeinit(&second);
HttpResponseDeinit(&response);
bool ok = (DebugAllocatorLiveCount(&dbg) == 0);- In
Http.Leak.c:170:
FileRemove(StrBegin(&path));
StrDeinit(&path);
HttpResponseDeinit(&response);
ok = ok && (DebugAllocatorLiveCount(&dbg) == 0);- In
Http.c:60:
StrDeinit(&wire);
HttpResponseDeinit(&response);
DefaultAllocatorDeinit(&alloc);
return ok;- In
Http.c:229:
FileRemove(StrBegin(&path));
StrDeinit(&path);
HttpResponseDeinit(&response);
DefaultAllocatorDeinit(&alloc);
return ok;- In
Http.c:254:
FileRemove(StrBegin(&path));
StrDeinit(&path);
HttpResponseDeinit(&response);
DefaultAllocatorDeinit(&alloc);
return ok;- In
Http.c:277:
bool ok = (res == NULL);
HttpResponseDeinit(&response);
DefaultAllocatorDeinit(&alloc);
return ok;
Last updated on