]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix configure libevent memory leak
authorAlex Xu (Hello71) <alex_y_xu@yahoo.ca>
Sun, 29 Oct 2017 13:14:58 +0000 (13:14 +0000)
committerNick Mathewson <nickm@torproject.org>
Wed, 15 Nov 2017 20:07:49 +0000 (15:07 -0500)
Breaks build with externally-specified hardening flags.

configure.ac

index 315bd2df3593e86b6a5029d7f29bac9820bc9795..8f56b8e80516fdb6b248a6a0aa7b2705b7498797 100644 (file)
@@ -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.