summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Hahn <sebastian@torproject.org>2009-10-10 13:41:44 +0200
committerSebastian Hahn <sebastian@torproject.org>2009-10-10 13:41:44 +0200
commite35f9414d6853cb9a245797190296e9d1561761a (patch)
tree9464dc449657aaa1231cdc37623153ea5d5a8de7
parent0c70390dd7d006938def5cefc70b093b652ebf5f (diff)
downloadtor-e35f9414d6853cb9a245797190296e9d1561761a.tar.gz
tor-e35f9414d6853cb9a245797190296e9d1561761a.zip
Fix a memleak when throwing away some build times
This was introduced in f7e6e852e80c22b40a8f09bc1c85074726d7078e. Found by Coverity
-rw-r--r--src/or/circuitbuild.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index 54edccc9a7..fbdbb85b2f 100644
--- a/src/or/circuitbuild.c
+++ b/src/or/circuitbuild.c
@@ -454,6 +454,8 @@ circuit_build_times_parse_state(circuit_build_times_t *cbt,
"Too many build times in state file. "
"Stopping short before %d",
loaded_cnt+count);
+ SMARTLIST_FOREACH(args, char*, cp, tor_free(cp));
+ smartlist_free(args);
break;
}