Commit fadd40a191695f7e59129735e6487995ca1537b3

Thomas de Grivel 2024-07-20T19:28:43

fix useless free

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/http/socket.c b/http/socket.c
index c2791d0..2810973 100644
--- a/http/socket.c
+++ b/http/socket.c
@@ -108,7 +108,6 @@ p_socket socket_init_listen (p_socket s, const s_str *host, u16 port)
     err_write_1("socket_init_listen: listen: ");
     err_puts(strerror(e));
     assert(! "socket_init_listen: listen");
-    free(addr);
     return NULL;
   }
   *s = tmp;