summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2017-10-29 13:14:58 +0000
committerAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2017-11-14 12:45:02 -0500
commit50a98339b9c5e57acdc8355fa52509c9c1cd9497 (patch)
treeab96f71d1b270cf1da3de7c5ef2203634f9e4fdb
parentfe04a19cb794be9cbdbe09b6792799f010b108c7 (diff)
downloadtor-50a98339b9c5e57acdc8355fa52509c9c1cd9497.tar.xz
tor-50a98339b9c5e57acdc8355fa52509c9c1cd9497.zip
Fix configure libevent memory leak
Breaks build with externally-specified hardening flags.
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 998bb914b3..93b18a326a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -625,7 +625,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.