aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2017-10-29 13:14:58 +0000
committerNick Mathewson <nickm@torproject.org>2017-11-15 15:07:49 -0500
commit74b7bfbe471c953269ba8e5f4d808db3c0a9c8a6 (patch)
tree199911720562a054a86188dc72da25779ab80861 /configure.ac
parent50fbede4597d143411b3739e88d2c3d8ef457fbd (diff)
downloadtor-74b7bfbe471c953269ba8e5f4d808db3c0a9c8a6.tar.gz
tor-74b7bfbe471c953269ba8e5f4d808db3c0a9c8a6.zip
Fix configure libevent memory leak
Breaks build with externally-specified hardening flags.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
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.