[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



Author: Karsten Loesing <karsten.loesing@xxxxxxx>
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