From 74b7bfbe471c953269ba8e5f4d808db3c0a9c8a6 Mon Sep 17 00:00:00 2001 From: "Alex Xu (Hello71)" Date: Sun, 29 Oct 2017 13:14:58 +0000 Subject: [PATCH 1/3] 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 315bd2df3..8f56b8e80 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. From f28559fd2a70ae8e30477c3d6fa2ffc499a63e34 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 15 Nov 2017 15:09:11 -0500 Subject: [PATCH 2/3] Changes file for 24279. --- changes/bug24279 | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 changes/bug24279 diff --git a/changes/bug24279 b/changes/bug24279 new file mode 100644 index 000000000..b2d5698bb --- /dev/null +++ b/changes/bug24279 @@ -0,0 +1,4 @@ + o Minor bugfixes (compilation, hardening): + - Fix a memory leak warning in one of the libevent-related + configuration tests that could occur when manually specifying + -fsanitize=address. Fixes bug 24279; bugfix on 0.3.0.2-alpha. From 7548805850439bd6d6cff1c858c707ccbca94d29 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 15 Nov 2017 15:11:15 -0500 Subject: [PATCH 3/3] whoops; add missing credit. --- changes/bug24279 | 1 + 1 file changed, 1 insertion(+) diff --git a/changes/bug24279 b/changes/bug24279 index b2d5698bb..ab2932b34 100644 --- a/changes/bug24279 +++ b/changes/bug24279 @@ -2,3 +2,4 @@ - Fix a memory leak warning in one of the libevent-related configuration tests that could occur when manually specifying -fsanitize=address. Fixes bug 24279; bugfix on 0.3.0.2-alpha. + Found and patched by Alex Xu.