summaryrefslogtreecommitdiff
path: root/http.c
diff options
context:
space:
mode:
authorAzat Khuzhin <azat@libevent.org>2021-08-12 01:40:27 +0300
committerAzat Khuzhin <azat@libevent.org>2021-08-12 01:40:46 +0300
commit2b92b830a742998b75aca5ff123faed562932033 (patch)
tree21d0d08fd8e57f8553b32b557d320da953deb684 /http.c
parent86292628e30bea51c0de0136a00837ca2bc8447c (diff)
downloadlibevent-2b92b830a742998b75aca5ff123faed562932033.tar.gz
http: fix building under windows (guard with _WIN32 for unixsocket free)
Reported-by: @kaend
Diffstat (limited to 'http.c')
-rw-r--r--http.c2
1 files changed, 2 insertions, 0 deletions
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);
}