From: Steven Chamberlain Date: Mon, 29 Feb 2016 14:09:07 +0000 (+0000) Subject: test_options.c: NULL a pointer after free #18447 X-Git-Tag: tor-0.2.8.2-alpha~61 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=45681f695c6096e280bc7ec3bf0a67c27708dbbc;p=thirdparty%2Ftor.git test_options.c: NULL a pointer after free #18447 tdata will be double-freed if none of linux, __FreeBSD__, DARWIN or __OpenBSD__ are defined. (For example, FreeBSD derivatives). --- diff --git a/src/test/test_options.c b/src/test/test_options.c index d294e607a2..9ea57189ef 100644 --- a/src/test/test_options.c +++ b/src/test/test_options.c @@ -1078,6 +1078,7 @@ test_options_validate__transproxy(void *ignored) // Test trans proxy success free_options_test_data(tdata); + tdata = NULL; #if defined(linux) tdata = get_options_test_data("TransProxyType tproxy\n"