Procházet zdrojové kódy

fix a minor leak in my recent commit

svn:r3081
Roger Dingledine před 21 roky
rodič
revize
5ba3328172
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  1. 1 0
      src/or/circuitbuild.c

+ 1 - 0
src/or/circuitbuild.c

@@ -810,6 +810,7 @@ circuit_all_predicted_ports_handled(time_t now) {
   int enough;
   int enough;
   smartlist_t *sl = circuit_get_unhandled_ports(now);
   smartlist_t *sl = circuit_get_unhandled_ports(now);
   enough = (smartlist_len(sl) == 0);
   enough = (smartlist_len(sl) == 0);
+  SMARTLIST_FOREACH(sl, char *, cp, tor_free(cp));
   smartlist_free(sl);
   smartlist_free(sl);
   return enough;
   return enough;
 }
 }