summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/test/test_circuitstats.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/test_circuitstats.c b/src/test/test_circuitstats.c
index 9d87c325b4..8ebef659ca 100644
--- a/src/test/test_circuitstats.c
+++ b/src/test/test_circuitstats.c
@@ -82,6 +82,8 @@ build_unopened_fourhop(struct timeval circ_start_time)
onion_append_hop(&or_circ->cpath, fakehop);
onion_append_hop(&or_circ->cpath, fakehop);
+ tor_free(fakehop);
+
return or_circ;
}