From: Nishi Date: Wed, 18 Sep 2024 21:29:38 +0000 (+0000) Subject: fix memleak X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=d1390757fa511498275fb278b1d99964eb3222a4;p=tewi.git fix memleak git-svn-id: file:///raid/svn-personal/tewi/trunk@66 8739d7e6-ffea-ec47-b151-bdff447c6205 --- diff --git a/Server/server.c b/Server/server.c index 9656006..db6cef6 100644 --- a/Server/server.c +++ b/Server/server.c @@ -648,6 +648,7 @@ void tw_server_pass(int sock, bool ssl, int port, SOCKADDR addr) { addstring(&str, "
%h
\n", rmbuf); fclose(fr); } + free(fpth); } addstring(&str, "
\n"); addstring(&str, "
%s Server at %s Port %d
\n", tw_server, name, port);