Browse Source

Fix memory leak spotted by Nick.

Karsten Loesing 14 years ago
parent
commit
3d77c67d93
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/or/rephist.c

+ 3 - 0
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;
 }