Explorar o código

Fix memory leak spotted by Nick.

Karsten Loesing %!s(int64=15) %!d(string=hai) anos
pai
achega
3d77c67d93
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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;
 }