]> granicus.if.org Git - libevent/commitdiff
http: fix building under windows (guard with _WIN32 for unixsocket free)
authorAzat Khuzhin <azat@libevent.org>
Wed, 11 Aug 2021 22:40:27 +0000 (01:40 +0300)
committerAzat Khuzhin <azat@libevent.org>
Wed, 11 Aug 2021 22:40:46 +0000 (01:40 +0300)
Reported-by: @kaend
http.c

diff --git a/http.c b/http.c
index 0a7efb420bf7587727fc8229384a4e5ca7fc8153..9cebbb7c7bdc98194869062b742eb548aebb6803 100644 (file)
--- 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);
 }