From db024adc90069ce9961f3993aba1b7372f09d77a Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 4 Dec 2017 15:09:18 -0500 Subject: Switch to a safer FREE_AND_NULL implementation This one only evaluates the input once, so it cannot mess up even if there are side effects. --- src/test/test_dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/test/test_dir.c') diff --git a/src/test/test_dir.c b/src/test/test_dir.c index 4cab307ce1..35e4fb44c8 100644 --- a/src/test/test_dir.c +++ b/src/test/test_dir.c @@ -567,7 +567,7 @@ test_dir_routerinfo_parsing(void *arg) static void routerinfo_free_wrapper_(void *arg) { - routerinfo_free(arg); + routerinfo_free_(arg); } static void -- cgit v1.2.3-54-g00ecf