aboutsummaryrefslogtreecommitdiffstats
path: root/src/blogc-runserver/httpd.c
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2018-03-13 00:21:32 +0100
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2018-03-13 00:21:32 +0100
commitdd8d43e8dee47bba294fa489a6f44bd2ac7000f7 (patch)
tree6d3fbd950b1121277838c0a5e82d0d7a865daf18 /src/blogc-runserver/httpd.c
parent89e2a39d1ee66a233b1cd21606ba66b32b902b08 (diff)
downloadblogc-dd8d43e8dee47bba294fa489a6f44bd2ac7000f7.tar.gz
blogc-dd8d43e8dee47bba294fa489a6f44bd2ac7000f7.tar.bz2
blogc-dd8d43e8dee47bba294fa489a6f44bd2ac7000f7.zip
runserver: fixed double-free
this bug was reported by clang-analyzer.
Diffstat (limited to 'src/blogc-runserver/httpd.c')
-rw-r--r--src/blogc-runserver/httpd.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/blogc-runserver/httpd.c b/src/blogc-runserver/httpd.c
index ca16394..d1fc0e1 100644
--- a/src/blogc-runserver/httpd.c
+++ b/src/blogc-runserver/httpd.c
@@ -339,7 +339,6 @@ br_httpd_run(const char *host, const char *port, const char *docroot,
"\n"
"WARNING!!! This is a development server, DO NOT RUN IT IN PRODUCTION!\n"
"\n", max_threads);
- free(final_host);
size_t current_thread = 0;