소스 검색

r17403@catbus: nickm | 2007-12-26 22:23:50 -0500
Apparently loops work better when you actually increment/decrement the loop variable. Who knew?


svn:r12992

Nick Mathewson 18 년 전
부모
커밋
148e2e1c48
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/or/buffers.c

+ 1 - 0
src/or/buffers.c

@@ -237,6 +237,7 @@ buf_shrink_freelists(int free_all)
       while (n_to_skip) {
         tor_assert((*chp)->next);
         chp = &(*chp)->next;
+        --n_to_skip;
       }
       chunk = *chp;
       *chp = NULL;