Procházet zdrojové kódy

Fix memory leak in test_geoip

Nick Mathewson před 10 roky
rodič
revize
fa202c4127
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  1. 1 0
      src/test/test.c

+ 1 - 0
src/test/test.c

@@ -955,6 +955,7 @@ test_geoip(void)
   geoip_start_dirreq((uint64_t) 1, 1024, DIRREQ_TUNNELED);
   s = geoip_format_dirreq_stats(now + 86400);
   test_streq(dirreq_stats_4, s);
+  tor_free(s);
 
   /* Stop collecting directory request statistics and start gathering
    * entry stats. */