소스 검색

missing smartlist_free in new consdiff test

Nick Mathewson 9 년 전
부모
커밋
b7dd3518b9
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/test/test_consdiff.c

+ 2 - 0
src/test/test_consdiff.c

@@ -622,6 +622,8 @@ test_consdiff_gen_ed_diff(void *arg)
   tt_str_eq_line(".", smartlist_get(diff, 5));
   tt_str_eq_line("2d", smartlist_get(diff, 6));
 
+  smartlist_free(diff);
+
   smartlist_clear(cons1);
   smartlist_clear(cons2);
   consensus_split_lines(cons1, "B\n", area);