Skip to content
HttpResponseDeinit

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)
    }
    
    void HttpResponseDeinit(HttpResponse *response) {
        if (!response) {
            LOG_FATAL("invalid arguments");
        StrDeinit(&first);
        StrDeinit(&second);
        HttpResponseDeinit(&response);
        bool ok = (DebugAllocatorLiveCount(&dbg) == 0);
        FileRemove(StrBegin(&path));
        StrDeinit(&path);
        HttpResponseDeinit(&response);
        ok = ok && (DebugAllocatorLiveCount(&dbg) == 0);
    
        StrDeinit(&wire);
        HttpResponseDeinit(&response);
        DefaultAllocatorDeinit(&alloc);
        return ok;
        FileRemove(StrBegin(&path));
        StrDeinit(&path);
        HttpResponseDeinit(&response);
        DefaultAllocatorDeinit(&alloc);
        return ok;
        FileRemove(StrBegin(&path));
        StrDeinit(&path);
        HttpResponseDeinit(&response);
        DefaultAllocatorDeinit(&alloc);
        return ok;
        bool ok = (res == NULL);
    
        HttpResponseDeinit(&response);
        DefaultAllocatorDeinit(&alloc);
        return ok;
Last updated on