Selaa lähdekoodia

Fix memory leak in test_geoip

Nick Mathewson 10 vuotta sitten
vanhempi
commit
fa202c4127
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  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. */