From d0ff2cc37a18bfabc5aa7539045adb84442426a2 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Tue, 13 Mar 2018 00:21:32 +0100 Subject: runserver: fixed memory leak this bug was reported by clang-analyzer. --- src/blogc-runserver/httpd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/blogc-runserver/httpd.c b/src/blogc-runserver/httpd.c index d1fc0e1..13b7800 100644 --- a/src/blogc-runserver/httpd.c +++ b/src/blogc-runserver/httpd.c @@ -374,6 +374,8 @@ br_httpd_run(const char *host, const char *port, const char *docroot, if (threads[current_thread].initialized) { if (pthread_join(threads[current_thread].thread, NULL) != 0) { fprintf(stderr, "Failed to join thread\n"); + free(arg->ip); + free(arg); rv = 3; goto cleanup; } -- cgit v1.2.3-18-g5258