Explorar o código

Fix configure libevent memory leak

Breaks build with externally-specified hardening flags.
Alex Xu (Hello71) %!s(int64=6) %!d(string=hai) anos
pai
achega
74b7bfbe47
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      configure.ac

+ 1 - 1
configure.ac

@@ -527,7 +527,7 @@ struct event_base *event_base_new(void);],
 #ifdef _WIN32
 {WSADATA d; WSAStartup(0x101,&d); }
 #endif
-event_base_new();
+event_base_free(event_base_new());
 ], [--with-libevent-dir], [/opt/libevent])
 
 dnl Determine the incantation needed to link libevent.