From: Azat Khuzhin Date: Wed, 11 Aug 2021 22:40:27 +0000 (+0300) Subject: http: fix building under windows (guard with _WIN32 for unixsocket free) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2b92b830a742998b75aca5ff123faed562932033;p=libevent http: fix building under windows (guard with _WIN32 for unixsocket free) Reported-by: @kaend --- diff --git a/http.c b/http.c index 0a7efb42..9cebbb7c 100644 --- a/http.c +++ b/http.c @@ -1356,8 +1356,10 @@ evhttp_connection_free(struct evhttp_connection *evcon) if (evcon->address != NULL) mm_free(evcon->address); +#ifndef _WIN32 if (evcon->unixsocket != NULL) mm_free(evcon->unixsocket); +#endif mm_free(evcon); }