http: fix building under windows (guard with _WIN32 for unixsocket free)

Reported-by: @kaend
This commit is contained in:
Azat Khuzhin 2021-08-12 01:40:27 +03:00
parent 86292628e3
commit 2b92b830a7

2
http.c
View File

@ -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);
}