MCPcopy Create free account
hub / github.com/acl-dev/acl / cgi_free

Function cgi_free

app/jaws/plugin/cgi/http_cgi.c:79–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79static void cgi_free(CGI *cgi)
80{
81 if (cgi == NULL)
82 return;
83 if (cgi->client)
84 acl_vstream_close(cgi->client);
85 if (cgi->hdr_req)
86 http_hdr_req_free(cgi->hdr_req);
87 if (cgi->req) {
88 cgi->req->hdr_req = NULL;
89 http_req_free(cgi->req);
90 }
91 if (cgi->hdr_res)
92 http_hdr_res_free(cgi->hdr_res);
93 if (cgi->cgi)
94 acl_myfree(cgi->cgi);
95 if (cgi->alias)
96 acl_myfree(cgi->alias);
97 acl_myfree(cgi);
98}
99
100static void run_cgi(CGI *cgi, ACL_ARGV *env)
101{

Callers 1

http_cgi_threadFunction · 0.85

Calls 4

acl_vstream_closeFunction · 0.85
http_hdr_req_freeFunction · 0.85
http_req_freeFunction · 0.85
http_hdr_res_freeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…