commit b9d67604deb91635f67545a801571b0298a44274 from: Omar Polo date: Sat Sep 02 07:55:29 2023 UTC amused-web: don't allocate client struct twice commit - 5ce4c55cc90bdd51007f40008c5044d451c6ea09 commit + b9d67604deb91635f67545a801571b0298a44274 blob - ec36716ea606e9472b85231a39ad1fe4d66bff6d blob + d0e29659553acccbbca336da4bb4e720ee085282 --- web/web.c +++ web/web.c @@ -706,7 +706,6 @@ web_accept(int psock, int ev, void *d) warn("accept"); return; } - clt = xcalloc(1, sizeof(*clt)); if ((clt = calloc(1, sizeof(*clt))) == NULL || http_init(clt, sock) == -1) { log_warn("failed to initialize client");