Fix for free()

This commit is contained in:
2020-12-22 18:43:11 +01:00
parent 31fa9195a1
commit 815fa32d14
2 changed files with 14 additions and 11 deletions

View File

@ -164,4 +164,11 @@ void uri_free(http_uri *uri) {
if (uri->query != NULL) free(uri->query);
if (uri->filename != NULL) free(uri->filename);
if (uri->uri != NULL) free(uri->uri);
uri->webroot = NULL;
uri->req_path = NULL;
uri->path = NULL;
uri->pathinfo = NULL;
uri->query = NULL;
uri->filename = NULL;
uri->uri = NULL;
}