Procházet zdrojové kódy

Fix memory leak spotted by Nick.

Karsten Loesing před 15 roky
rodič
revize
3d77c67d93
1 změnil soubory, kde provedl 3 přidání a 0 odebrání
  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;
 }