summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarsten Loesing <karsten.loesing@gmx.net>2010-08-15 13:34:57 +0200
committerKarsten Loesing <karsten.loesing@gmx.net>2010-08-15 13:34:57 +0200
commit3d77c67d93dd263ba0b988b9f7c5bd956872dd6f (patch)
tree020b0efe48fd32e67aa2d978dcc1b641f1f32e6b
parentacd25558b825f5d1254738fc45f5c7f0ccb3fb94 (diff)
downloadtor-3d77c67d93dd263ba0b988b9f7c5bd956872dd6f.tar.gz
tor-3d77c67d93dd263ba0b988b9f7c5bd956872dd6f.zip
Fix memory leak spotted by Nick.
-rw-r--r--src/or/rephist.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/rephist.c b/src/or/rephist.c
index bba96ffb12..63e602d052 100644
--- a/src/or/rephist.c
+++ b/src/or/rephist.c
@@ -2011,6 +2011,9 @@ rep_hist_exit_stats_history(time_t now)
written_string,
read_string,
streams_string);
+ tor_free(written_string);
+ tor_free(read_string);
+ tor_free(streams_string);
return result;
}