[or-cvs] [tor/master 2/7] Fix memory leak spotted by Nick.

nickm at torproject.org nickm at torproject.org
Mon Aug 16 01:18:13 UTC 2010


Author: Karsten Loesing <karsten.loesing at gmx.net>
Date: Sun, 15 Aug 2010 13:34:57 +0200
Subject: Fix memory leak spotted by Nick.
Commit: 3d77c67d93dd263ba0b988b9f7c5bd956872dd6f

---
 src/or/rephist.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/or/rephist.c b/src/or/rephist.c
index bba96ff..63e602d 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;
 }
 
-- 
1.7.1




More information about the tor-commits mailing list