瀏覽代碼

fix a per-circuit memory leak

svn:r1029
Roger Dingledine 20 年之前
父節點
當前提交
e05d39d1af
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/or/onion.c

+ 1 - 0
src/or/onion.c

@@ -478,6 +478,7 @@ int onion_extend_cpath(crypt_path_t **head_ptr, cpath_build_state_t *state, rout
     log_fn(LOG_DEBUG, "Contemplating last hop: choice already made: %s",
            state->chosen_exit);
     choice = router_get_by_nickname(state->chosen_exit);
+    smartlist_free(excludednodes);
     if(!choice) {
       log_fn(LOG_WARN,"Our chosen exit %s is no longer in the directory? Failing.",
              state->chosen_exit);