From 2b92b830a742998b75aca5ff123faed562932033 Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Thu, 12 Aug 2021 01:40:27 +0300 Subject: [PATCH] http: fix building under windows (guard with _WIN32 for unixsocket free) Reported-by: @kaend --- http.c | 2 ++ 1 file changed, 2 insertions(+) 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); }