]> Nishi Git Mirror - tewi.git/commitdiff
fix memleak
authorNishi <nishi@nishi.boats>
Wed, 18 Sep 2024 21:29:38 +0000 (21:29 +0000)
committerNishi <nishi@nishi.boats>
Wed, 18 Sep 2024 21:29:38 +0000 (21:29 +0000)
git-svn-id: file:///raid/svn-personal/tewi/trunk@66 8739d7e6-ffea-ec47-b151-bdff447c6205

Server/server.c

index 965600648f6c3a0e869198feae73f95f5673f5b0..db6cef66ac907bdf5b05b0197a37fc7536060ec0 100644 (file)
@@ -648,6 +648,7 @@ void tw_server_pass(int sock, bool ssl, int port, SOCKADDR addr) {
                                                                        addstring(&str, "<pre><code>%h</code></pre>\n", rmbuf);
                                                                        fclose(fr);
                                                                }
+                                                               free(fpth);
                                                        }
                                                        addstring(&str, "               <hr>\n");
                                                        addstring(&str, "               <address>%s Server at %s Port %d</address>\n", tw_server, name, port);