From 74b7bfbe471c953269ba8e5f4d808db3c0a9c8a6 Mon Sep 17 00:00:00 2001 From: "Alex Xu (Hello71)" Date: Sun, 29 Oct 2017 13:14:58 +0000 Subject: [PATCH] Fix configure libevent memory leak Breaks build with externally-specified hardening flags. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 315bd2df35..8f56b8e805 100644 --- a/configure.ac +++ b/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.