Ver código fonte

Fix memory leak spotted by Nick.

Karsten Loesing 15 anos atrás
pai
commit
3d77c67d93
1 arquivos alterados com 3 adições e 0 exclusões
  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;
 }